What causes loss of power while going uphills?

Gravity! We fight that loss of power by using more torque.