We may not be under the curse of the old covenant, but we do have a good and just Father who loves and disciplines us. Sometimes a loving parent teaches a rebellious child by letting them feel the consequences of their destructive behavior.
Well, it is the GOODNESS of God that leads us to repentance.
Just look at Jesus Christ, who is God in the flesh and the revelation of the Father. How many people did he “discipline” for what they did wrong? He forgave and healed everyone who came to him.
Sin can have consequences like injury if I jump off a building. But God is not in the business of injuring me. He is in the business of healing, strengthening, and helping me.