One thing about wandering/traveling/hiking is that your mind also have a lot chances to wander. I tend to do that a lot and I find myself in constant reflections about life, sometimes ruminating over past failures or obsessing over losses.
Fortunately, photography helps pull me out of that state and bring me back to the enjoyment of now, to appreciate the beauty in front of us rather than what we wish for in the past or future.