The fact, basic fact, whatever the strategic or tactical point of view is: You don't bomb a hospital, you don't shoot at ambulances, as you don't shoot to parachutist except within a dropping parachutists operation, nor your can shoot at sailors in a rescue embarkation.

There is no indication that the Talibans were in the hospital, and in fact there are indications they were not...

If you made a mistake, or if as Hamas does, the militants put weapons near the hospital, and nothing indicates the Talibans did it, it is exactly why you have Air Controllers on the ground.