The arguments between James Madison and Southern, Slave owning states, particularly Patrick Henry and George Mason, saw it quite differently from you. In fact, Madison, assured these states that the specific wording (state, not nation or country) would allow for southern slave patrol militias, many of which men from 18 to 45 were required to serve in if called upon, to put down slave uprisings ad other such insurrections against the state.
To pretend this was about protecting the citizen's ability to fight the government, and not state suppression of slave riots and insurrections, I must say, is not supported by the deliberations of these men who framed the amendment. Southern states were afraid that northern abolitionist states would simply free slaves and absorb them into the militia, thus empowering them with weapons to put down slavery in other states.