Why do muscles tighten up?

If I don’t stretch for a few days, my hamstrings and calves tighten up a lottt. Could this be caused by a weak anterior chain?

I never noticed this to happen in my upper body.