Ummm, sorry, but it doesn't.
Read what it actually says.
"...the right of the people to keep and bear arms shall not be infringed."
That's "the people", which means everybody. Even your 80-year old grandpa and your cousin's 6-month old baby, neither of whom are in any militia.
If...