I am thinking that it wasn't just a crime/self defense issue, but you also saw more power sharing from kings/dictators to more and more of the population.
And of course, the gun was a weapon that could be wielded effectively with little training compared to swords and other weapons.