Ideally there is a chance to pick up a career again, but in practice for many women it's extremely difficult or impossible, because time at home with children is seen by patriarchal society as time the woman spent 'doing nothing' - it counts for nothing, despite being the thing that is forming the next generation of humans.
Why do women accept being treated in this way?
This sort of emotive commentary does no one any service. No one is going to value you raising your children, other than the person who shares them with you.
If you're in any field other than childcare, your years at home with your children represent not only years of not gaining experience, but an atrophy of skills.
The question is not 'why do women accept being treated this way' but rather:
Why are they choosing the fields they do
Why are they choosing men who have no intention of taking paternity leave or helping around the house, much less relocating to accommodate their careers for example
Why are they not back at work after having a baby much sooner - why are they at home with school-aged children
Whey are they so nice and accommodating
And so on. But as you can see, all these questions are provocative and unsociable and strike at the very heart of what we perceive as a woman's choice to sort her life out as she sees fit.