God is the source of our life and value. Losing a connection with God causes us to lose our sense of value. God gave His law as a means to protect our relationship with Him and protect our value.
As David said, O how I love you law. The law understood correctly is a wonderful gift from God