Hi and welcome to the forum
If the fish has been doing it since you got it, there might be an issue with the swim bladder or the fish has ingested too much air.
If the fish struggles to swim down and automatically floats back up, then it is a concern. However, if it can swim around the bottom normally and then swims up to the top where it rests, that is less of an issue.
You can't do anything about swim bladder issues and most are caused by poor genetics, the fish was born with it and will die with it.
When the oxygen levels in water drop, catfish will take in air from the surface (swallow it) and as the air passes along their digestive tract they absorb the oxygen out of it. The air eventually comes out the other end. If the fish is swallowing lots of air, that will cause it to float. Having lots of aeration/ surface turbulence will help to maximise the oxygen levels in the water and the fish should be less likely to take in air. However, it could also be a habit the fish has (taking in air all the time) and there isn't much you can do about that.
You could try putting the fish into a shallow tank, that is an aquarium or large container (long & wide) with a few inches of water in. In shallower water the air will have less effect on the fish. Lowering the aquarium water level down a bit might help too but make sure the lower water level does not affect the filter or heater.
Have lots of floating plants in the tank for the fish to hide under so it is not as exposed when under the surface.