This is a reality of war. We are no worse and probably a lot better at minimizing civilian deaths.
Nowadays the matter is further complicated by combatants who deliberately conceal themselves, weapons caches and armaments among civilian populations.
War is a dirty, dirty business.