I know you're being rhetorical, but often, just trying to avoid a gap in your resume. It sucks but there can be a greater long-term cost to trying to reenter the workforce after taking years off to raise kids.
It smells a little like BS to me, both because it seems to be often repeated (so sounds like a talking point) but I can't imagine any parents I know to actually decide this way