The squat is a multi-joint exercise and – by many – considered a “fundamental” training for the mass and / or strength of the thighs and buttocks.
In reality, there are no really “fundamental” exercises; except, of course, in the case of disciplines that are based on the specific athletic gesture (eg powerlifting).