There was disagreement at the time of writing between the founding fathers, which was a factor in ending up with its somewhat quirky phrasing[0]. Most of this disagreement does seem to be about State vs Federal power rather than the topics in contemporary discussions about it.
The Supreme Court does seem to have settled upon it being an individual rights[1] issue. Considering all the other rights in the bill of rights are individual, there does seem to be some consistency to that.
[0] https://www.youtube.com/watch?v=pp0-g-cjxmM
[1] https://en.wikipedia.org/wiki/Second_Amendment_to_the_United...