Isn’t hydrotherapy just like swimming?

No, hydrotherapy rarely involves swimming.  It’s more doing exercises and specific techniques in the pool to work on strength, joint mobilisation, pain relief, relaxation, proprioception and balance working with the properties of the warm water to adjust the level of difficulty of the exercises to suit you and your condition.