You may want to read up on the idea of social contracts:
"In
political philosophy the
social contract or
political contract is a theory or model, originating during the
Age of Enlightenment, that typically addresses the questions of the origin of society and the legitimacy of the authority of the
state over the
individual.
[1] Social contract arguments typically posit that individuals have consented, either explicitly or tacitly, to surrender some of their freedoms and submit to the authority of the ruler or magistrate (or to the decision of a majority), in exchange for protection of their remaining
rights."
Social contract - Wikipedia, the free encyclopedia
You seem to be hitting on some of the same ideas and hypotheses.