They didn't bomb the hospital itself, they bombed a nearby place which caused massive shockwaves and they had to evacuate the hospital as well. Pretty sick, but we must rely on facts not emotions.
Facts are important only to those whose minds are not already made up irreversibly about certain matters. To them, USA will remain the Great Satan.
Good planning used to involve consideration of placing military facilities well away from civilian areas. That worked very well for decades, until increasing density and population growth made that less easy to achieve.
Then, due to the rise of asymmetric warfare in many regions of the world, the militarily weaker side intentionally mingled the two so that, at the very least, losing a military facility to enemy action would provide a useful propaganda source for demonizing the enemy.
That worked very well, until it didn't. What happened in Gaza and the West Bank is a tragic recent example of that change in tactics.
Having said the above, I sincerely hope that civilian casualties are avoided by all sides in the present conflict, and active efforts to reduce and eliminate them remain a priority for all sides involved.
Of course, the best thing to do is to negotiate a final settlement, as soon as can be achieved, to end the war.