Because the question was about Hamas not Israel. And Hamas actually benefits from an overreaction from Israel, since it will further radicalize the population, giving more credence to their stance of violence. So they may well have been hoping for exactly the response they are getting. But the issue is in so violently pushing for a maximalist dissolution of Israel goal, they gave up their chance at achieving independence.
Because the question was about Hamas not Israel. And Hamas actually benefits from an overreaction from Israel, since it will further radicalize the population, giving more credence to their stance of violence. So they may well have been hoping for exactly the response they are getting. But the issue is in so violently pushing for a maximalist dissolution of Israel goal, they gave up their chance at achieving independence.