A similar situation happened in the run up to the Battle of the Bulge in December of 1944. The observations of the soldiers in the field did not fit with the mindset of the intelligence officers, so the brass dismissed it. Even an organization as good as the IDF falls into bureaucratic thinking.
The IDF didn't take Hamas seriously. They were probably more focused on Hezbollah and Iran.