@alphajoza,
There are a number of philosophies regarding voluntary restrictions of human behavior. Social Contract, Enlightened Self Interest are but 2. Google either one for a more complete list.
What I find interesting is they are all human attempts to satisfy the promise made by the serpent in Genesis chapter 3 that humans can make their own decisions about good and bad. And, while the attempts may seem at first meritorious, 6000 years of reality have shown their failure. I, for one, am reassured by the full text of that chapter, promising an end to the rebellion and restoration of the Creator's purpose.