The military is no friend to the Islamists. The MB wants war with Israel. The military has little interest in having a war with Israel, a war where lots of Egyptian soldiers will die.
I think a lot of Egyptian soldiers and officers are thinking "If I am to live, then the MB must die".
Then why did the military aid the MB in the first place? There was certainly no reason to, was there, if any of that is true?