You mean the rockets that are intercepted? Which civilians have been hit, compared to the tens of thousands in Gaza in a few weeks? Those interceptor rockets cost Israel (and the US) much more than it costs Hamas to manufacture.
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.