The criminals weren’t looking for a fair fight, that’s why they brought a weapon and broke in at night trying for the element of surprise. That’s also why they came in a group instead of just one person.
The criminals wanted an advantage and picked the wrong house because the home owner was the one with the advantage.
Why should law abiding citizens be limited to the level of the criminals? Was the home owner supposed to call “time out” and ask the criminals what weapons they were armed with and arm himself with the weapon they brought?
Don’t want to get shot at? Don’t break into peoples homes in the middle of the night!