The risk of a high penalty contributed to such a decision.
I would like to live in the USA, where in some countries the defense of private property is allowed.
Here in my county, in the event of a burglary or attack, you are only allowed to retaliate with the same measure.
There were cases where the owners of homes that were robbed went to prison because they injured/killed a burglar...
That is, if someone knocks on the house and enters my bedroom, I first have to see if he is unarmed, if he has a knife or a gun, so that I can prepare for defense of the same weight. So if he shoots at me (and misses), then I can also shoot at him (and also miss him).
Law made to suit those who break it...