I mean those are two reasons it was kept, but there's also:
- It's based on a historical English law
- Wild predators
- Police back then were sometimes days away (and still hours away today in some cases)
- Hunting for food
- Shooting the French
- Shooting the Spanish
- The revolutionists were tired of raiding garrisons every time they needed armament
- The founding fathers wanted to keep their war ships