The primary function of law is to provide a framework for social order.
You get what you give. What you put into things is what you get out of them.