Why does Israel have strict gun laws for private citizens?

During all the atrocities that happened in the past few days in Israel I noticed something. All of the innocent civilians who were attacked, raped, kidnapped and murdered by Hamas terrorists were virtually defenseless.

I know the IDF immediately retaliated and fought back as quickly as possible. But obviously it was impossible to respond in time to protect the innocent civilians the terrorists harmed, raped, kidnapped and murdered. However it appears that every civilian who was harmed by Hamas terrorist were unarmed and completely defenseless.

I realize these terrorist militants have full automatic rifles and at best the civilians might have shotguns or semi auto rifles/pistols. But that’s better than nothing.

I personally rather go out fighting if someone broke into my house trying to kill me and my family. Even if only one terrorist gets killed by civilian self defense fire for every 10 civilians who die it’s better than being lambs to the slaughter. I realize these terrorists are brainwashed into thinking they are doing “God’s work” but still I bet a few would hesitate entering areas were they know some civilians are armed.

But why the hell does Israel of all places have strict private gun ownership laws when there is nothing but you and a 10ft wall (that got breached) filled with people who want to kill you, your kids and your women regardless if you are in the military or not?

https://www.timesofisrael.com/as-hamas-war-rages-personal-firearm-activists-see-surge-in-interest/#:~:text=Gun%20control%20in%20Israel%20is,gun%20is%20where%20they%20live.

Updates
6 mo
I’m not just talking about the supernova concert masacre either. I am talking about all the innocent civilians who were attacked directly in their homes in the surrounding villages.

From all the videos I have seen they looked completely defenseless which is no surprise because only 2% of Israeli’s civilian population owns guns which is insane all considered.
Why does Israel have strict gun laws for private citizens?
Post Opinion