Or stay there & get bombed.
if they see armed terrorists blocking the gates/roads to leave the city vs. the chance that a missle strike will hit them, their short term limited scope may push them to stay in Gaza.
Not smart, but that may be the result which makes it a sick (bad) job for the IDF.