That’s looking at history through a modern lens.
The reality is, women were not able to control when they got pregnant for almost all of human history. It was just part of life and sex.
They weren’t having children as some kind of decades long plan for the benefit of the group… they just had sex and nature did the rest.