Hamas kidnapping and otherwise firing rockets at Israel is also real action.
When Hamas places their military infrastructure in/under hospitals and schools I place the blame for civilian deaths near those places on Hamas. That does not excuse the other civilian deaths that Israel has needlessly caused though.
That's economic warfare. It's like a DDoS attack. Do something cheap that costs your enemy a lot.
The goal is to make occupation too expensive to sustain.