It's not about the demographics of Gaza, pre-war. It's about the demographics of northern Gaza, now. It makes no sense that there would still be more women and children remaining there.
And certainly some weren't able to leave. But clearly a lot of them did.