It's pretty simple. A highly politicized court split 5-4 and decided that the founders of their republic were chatterboxes and the first 13 words of the 27-word Second Amendment were just meaningless filler.

A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.