Whether you're climbing a mountain or just exploring your local trails, hiking is a demanding activity on the legs. The uneven terrain and changing elevation put extra stress on your joints - even in a good pair of walking shoes or hiking sandals.
It requires doing a good few sets of hiking exercises to prepare. I've felt enough twinges in my knees going downhill and rolled my ankle to know that.