Women and men have significant biological differences, and from my understanding of our evolution, they've had these significant differences for a much longer time that capitalism has existed. Evolution suggests that these biological differences result from differences in selection criteria, which supports the idea that men and women have served different roles over the majority of human existence.
Very high mortality rates associated with child birth meant that ability to birth and care for children used to be a highly selective trait. It's modern medicine that has made child birth and caring for children a much easier and safer endeavor, and allowed women to prioritize other roles in their life.