Upon squatting or crouching, your sitting position is inflated with immoderate hip and thigh bending. For this reason, the tensor fascia lata and rectus femoris muscles become tighter and shorter at your hip and longer and extended at the thigh. Unrestrained shortening compression in bending (inflection) at your hip and unrestrained protraction compression in straightening (elongation) at your knee hurt both tensor fascia lata and rectus femoris muscles.
To sustain a person in a crouched posture or squatting posture, muscles in the back of you hip must go through an excessive lengthening compression as well an undue shortening contraction at your thigh. Because muscles under the hip that must go through a lengthening compression like the adductor magnus and gluteus maximus are big and powerful, the hamstring muscles that also performs a similar maneuver at your hip may now have denser power for flexing the thigh. The more powerful the twist of your hamstring muscles to aggressively bend your knee, the more flexibility the tensor fascia lata and rectus femoris muscles must wield to counterbalance this pressure.
For that reason, if you want to stand upright after squatting or crouching, the earliest weakness, pain or hurt will be experienced in the front part of your thigh and front part of your thigh giving rise to excessive thigh discomfort.