When Adam and Eve sinned against God in the garden, mankind became cursed by sin. Because God is pure and holy, He can not accept sin into His presence. In order to restore us to His nature, He paid the lofty price of sin so that we wouldn’t have to. He died so that we might make the choice to come to know Him.
For Christ also suffered once for sins, the just for the unjust THAT HE MIGHT BRING US TO GOD, being put to death in the flesh but made alive in the Spirit. 1 Peter 3:18
For he hath made him to BE SIN FOR US, who knew no sin; that we might be made the righteousness of God in him. 2 Corinthians 5:21