Philosophy is a very different theater of debate than law. Legally, our system is heavily influenced by Locke, he of social contract fame. Within the framework of philosophy, we give up some individual rights when we join a collective in exchange for collective protection of those rights.
Second Treatise on Government doesn't say "you get all the guns you want." It says "you give up the right to do some things for protection to do other things." What those things are is the subject of law.