What use are all your many sacrifices to me? asks the Lord. I am sick and tired of your burnt offerings of rams and the fat of sacrificial animals. I don't delight in the blood of bulls and lambs and goats!
However, he was the one who took up our weaknesses and loaded himself down with our pain—but we assumed he was being hit, beaten, and humiliated by God.
God made Jesus, who never personally sinned, experience the consequences of sin so that we could have a character that is good and right just as God is good and right.