As one news article mentioned, Hamas wouldn’t have launched an attack of this sort without anticipating that there would be a total Israeli ground offensive into Gaza in the weeks that would follow, and also extreme-prepping the entire Gaza region to Stalingrad it.
I expect a much bigger version of the Battle of Fallujah in the coming weeks; bloodily door-by-door.