You know here's the thing. I have had female co-workers complain about being asked in interviews at other companies as to whether they'd quit their jobs (rather than taking paid/unpaid leave) if they had kids. I would quietly listen, take notes in my heads as to which companies to avoid working at.
There are two things that come to mind.
These companies are ones where shit floats so to speak and nothing good will come out of those for anybody.
They are also usually ones who feel unusually entitled to way too much of their workers' personal lives generally.