The IDF conveyed warnings to the hospital staff and urged civilians to leave the area.
Then bombed it.
From the video: Hamas has turned Wafa Hospital into a command center and a rocket-launching site. Hamas has fired at Israel and at IDF forces from the hospital. As a result, the IDF repeatedly conveyed warnings to the hospital staff and urged civilians to leave the area. Hamas continued firing from the hospital. In response, the IDF targeted specific sites and terrorists within the hospital grounds. Secondary explosions can be seen, confirming IDF intelligence about the site.
Hamas deliberately endangers both Israeli and Palestinian civilians–