It’s because the stupid amendment is ambiguous.
“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.”
Technically, it could be argued that the Militia clause is descriptive of one particular application of guns, not prescriptive of their every Constitutional use. But there has been endless disagreement on this subject.