anyway this is war
israel obviously isn't targeting innocent people of course, but no one can prevent in such a small and populated place from people with no weapon and involvement to get hurt, especially when hamas doing anything they can for their people to die to blame israel.
war it's not a sterile surgery operation, this is real life and a lot of things get into the mix during fighting.