Don't worry about your weight for a short time.
The human body does not have this function. It won't work soon
There is also the wrong direction of practice.
If you want to lose fat,
swim
If you want to grow muscles,
Go to the gym.
Muscle has a larger proportion than fat, so it gains weight.