Muscles can hurt from overuse injury, fatigue and tightness. Xc skiing use the HF to return the ski after the push off and is stretched to allow the leg to push back. See pic below
Cycling uses the HF to lift the leg up.
I suggest some easy stretches for the HF but since they are sore, easy!