They are talking specifically about climbs, where they are trying to get more force on the pedal through the use of their arms.
If we're talking about distance trekking, you shouldn't be coming off the seat at all. Your pedal force should be much less than your body weight, even during climbs. Downshift to maintain sustainable cadence and effort, even if that means slowing to a walking pace.