Yes, well... the Russians seem
especially unconcerned with checking targets for validity before mashing the fire button.
The logic they're presenting is largely the same as Israel's excuse for bombing hospitals in Gaza.
When there's a war in a civilian area, injured soldiers from the front line will be mostly treated at the nearest available hospital, which then overflows into regional hospitals further back, etc... A country under siege at the scales seen in Ukraine and Gaza don't get to pick and choose specific hospitals, they're all overflowing, so they use every available medical facility, including children's hospitals.
Worse, the convoys taking the wounded to these hospitals are more than likely military trucks and are driven by and/or escorted by military personnel in uniform.
On a blurry satellite picture or drone video the enemy will see a building frequently visited by the military.
"Legitimate target!"
Boom.
"Oops."