It matters because those structures have been converted from peoples' homes to weapons of war. And those weapons are dangerous to both Israeli soldiers and to Gazan citizens.
Many of the dead children pinned on Israel are the result of the bobby trapped buildings. This actually makes sense in Muslim media, where culturally those killed by either side are considered martyrs and afforded the gifts of heaven. But it makes no sense in Western media where human life is supposedly valued.
This is an argument that Hamas is bad not why buildings need to be destroyed