The United States was originally founded as a series of economic colonies, set right on top of a number of indigenous nations and competing colonies that had varying diplomatic responses, from foreign aid to war. This set in motion a series of genocidal acts that Britain was politically interested in supporting but economically and tactically unable to continue on the strength of their professional armies. So they started shipping over loyalists, who they already owed land to over the previous genocidal campaign in Ulster, armed them heavily, and told them the land was theirs if they could hold on to it against indigenous reprisals. It worked in the sense that the colonies were established, became prosperous, and indigenous autonomy was permanently crippled. It backfired in that the grandkids of those colonists started taking the "your land" part seriously and rebelled against their would-be monarch, also.
Realizing its mistake, Britain belatedly tried to disarm its overseas colonies. This only pissed off the colonists, who allied with their age old enemies the French, used the French Navy to expel the British, and enshrined the right to bear arms in the Constitution lest anyone try to take them away again. The connection between "freedom" and firearms will probably never be uncoupled, in part because it really is necessary - an empire diguised as a country, founded by the gun, must always survive by the gun. Do you imagine our police and military could, of their own accord, rule over a varied population of 300 million people, almost all of them immigrants from elsewhere and many of them former slaves of the others? Our constant and abiding fear of each other, shared emnity for the government, and even greater fear of outsiders, is a large part of what leads to the comparative stability of our sham state. Guns are the security blanket that help us cope with the resulting paranoia.