It's very clear from the founder's documents that they were far more concerned about keeping the people free from a central authoritarian federal government than from foreign enemies. They believed in limited government, not a nanny state enforced by the federal government limiting individual freedoms and liberties. Hence a Bill of Rights.