Same thing bit us on 9/11, underestimating the enemy always wrecks you.
I think Israel became overconfident and Hamas took advantage of that.