Caffeine has various positive mental and physical effects, which are one of the main reasons people consume caffeine. It typically improves athletic performance, which would be a plus while hiking.
Caffeine improves reaction time, vigilance and logical reasoning during extended periods with restricted opportunities for sleep
Caffeine Boosts Endurance and Strength. Studies shows that taking caffeine before and during exercise can increase muscle strength and endurance