Maybe you didn't realize...
"The right of the people to keep and bear arms shall not be infringed."
See how it's worded? It's deliberately worded such that the right is NOT granted by the government.
Same with this "endowed by our creator" stuff. It was very intentional. Even the secular founders understood and agreed with the reasoning behind it.
... but like, you realize those are just words and that the right is certainly granted/not granted by the governing body, right? As I said earlier, it conveys "spirit," but that's just emotional. The founders (and by extension the constitution) are granting the right by speaking it into existence.