Unfortunately, it's a fairly ambiguously-worded amendment. The authors aren't around to explain their rationale.
You could try reading the decision, or Heller, but the go-to foundational book has long been That Every Man Be Armed: The Evolution of a Constitutional Right by Stephen P. Halbrook.
Our formal militia is vastly better regulated than the population bearing arms.