The various stages of life apply to men, I don’t think when this idea was conceived by man they accounted for women to go through the four stages as well. They were reserved for taking care of the men. Also, the caste system restricted people to marry within their own caste. It didn’t account for individual agency and freedom to choose a professional outside of their caste or marry outside of their caste.