I've seen quite a few posts on Mumsnet and elsewhere asking why Gazans with dependent children are staying there despite the danger, some speculating that it's due to Hamas brainwashing to stay no matter what danger and become martyrs.
But that completely ignores that the Rafah Crossing for various reasons has been closed from 2024 and is only partially open now. The huge amount of crowdfunding campaigns to get into Egypt suggest to me that a lot of Gazans DO want to leave while the fighting continues, and do want to protect their children. It's not their fault that this is extremely difficult.