An interesting point about choosing to leave the workforce to care for children is that re-entry into the workforce or even the ability to work and care for children is something a social net could be established to support. If we have networks that allow army recruits to enter the workforce after their service, we could do the same for parents, but instead social nets seem to devalue the act of raising children, maybe because they are driven too much by short term profit. Taxpayers accept that too, preferring tax breaks for families with children over support networks and job opportunities to re-enter the workforce full-time. One imagines it again is about hiring those like you - managers hiring individuals who worked from home are unlikely to have worked from home - they needed the time in industry to become experienced managers.
Edit: upon rereading my last comment, it is possible that work from home norms established under covid might be the best thing to happen to stay at home parents and their continued full time employment. This could then boost the number of relatively younger parents who could continue in the workforce after mat leave while also providing child care. But it’s not a replacement for better social nets and better social norms.