Because the Palestinian elected government which happens to be a globally recognized terrorist organization decided to build headquarters below hospitals in hope of exploiting the rule of war you mention.
Except: doing what they did negates that rule, and all they did was put that entire hospital of their own people in the crosshairs.
This blood is 100% on the hands of the Palestinian elected government.
Ok, let’s just let Hamas murder millions. They’re invincible because all they have to do is grab the nearest civilian.
Get the fuck outta here with that idiotic child logic…