Israel is armed as well as it is precisely because it has been consistently attacked since its declaration of independence in 1948 when FIVE Arab States invaded it. And that not long after the Nazi Holocaust in Europe.
Knowing your people faced extermination in Europe AND your State is surrounded by hostile States in addition to various terrorist groups whose aim is to destroy your State is always going to push you to develop lots of security measures & military.
**
When you know that a rogue State like Iran has been backing Hamas, you know that level of protection is valid. It acts as a deterrent to a rogue State not to attack, especially since it is supported by the West.
Iran is no stranger to supporting terrorist groups. Provisional IRA, Greek 17 November group, Corsican nationalists and ETA, the Basque separatists, are all examples of terrorist groups Iran has supported over the years.
Israel is not out to wipe the Palestinian people off the map, but they are interested in wiping Hamas and any support they get in Gaza.
Hamas in conjunction with Iran could destroy Israel. Hamas without Iranian backing? Highly unlikely.
You cannot have peace until you've first broken the enemy in various ways. Palestinian support for Hamas and other Palestinian terrorist groups must be broken. A majority of Palestinian Gazans support Hamas.
The umbilical cord connecting Hamas to Iran is harder to destroy.