When you step on the pedal it changes the angle of the swash plate. The further you step the greater the change of that angle.
If you step on it all the way down on flat land the tractor will obtain maximum speed and maximum flow through the wheel motor circuit.
If you step on it all the way down going up a steep hill with a load, the tractor will have to work very hard to maintain that maximum flow and sometimes it is too much for the engine, so it will bog down.
By letting off the pedal, you reduce the angle of the swash plate, you flow less fluid through the pump, the engine can maintain the load and you can continue on your way, although at a slower pace.
So, if you are having problems going up a hill, don't mash the pedal. Let off the pedal.