The most unbearable thing in the Bible is the silence of God. For the Lord is your life. Parallel to law is love and compassion. Because God expects love and compassion to be shown to all people and so imitate the character of God. Deut 24, God wants life - not death.
Law preserves life and provides justice for all according to compassion.
God's example is our model for relationships. From God's law and word. There is an expected result. That God will renew the psalmist's life for its own sake. For strength, for comfort and hope and for obedience.