I think Israel became overconfident and Hamas took advantage of that.
One thing about losing...it'll make you rethink what you're doing.
Note that “more than a year ago” would have been when Benny Gantz was Defense Minister, infamous Aharon Haliva was Military Intelligence Director, and PM would have been Naftali Bennett and/or Yair Lapid.
There is a huge upheaval coming to all kinds of senior officials in Israel.