IDF wouldn't enter a hospital because they have nothing else to do. Intelligence told them Hamas terrorists hiding there, along with schools and other civilian places. Most wear civilian clothes too and they don't care about their own people, just use them as shields.