Why does my quads hurt after doing squats?

Strain. You are putting weight on your quads in the first part of the squat. In a deep squat, the weight transfers to the gluts, which are stronger. Don't give up because of the soreness.