I get this question quite often. The answer is two-fold:
Maintain a healthy baseline length in your hamstrings/glutes by learning to tip your pelvis forward in stacksitting, tallstanding, and glidewalking. When you tuck your pelvis, you bring your ischial tuberosities (sitz bones) in closer to where these muscles attach on the leg. This allows the hamstrings/glutes to adapt to a short resting length. Short hamstrings make you more vulnerable to hamstring injuries when you perform motions that require normal or elongated hamstrings. Tears can happen within the muscle, or, more commonly, where the hamstrings attach to the ischial tuberosities.
... Read more