"But he was wounded for our transgressions, he was bruised for our iniquities: the chastisement of our peace was upon him; and with his stripes we are healed."
Those wounds He suffered were not His, they were ours. Those iniquities which were laid upon Him were never His to bear. He volunteered to take them. We were relieved of them, and He took them. He purchased our peace by what He suffered to reconcile us to God. His infirmity was to heal us.
Our rejection of Him was the means by which He became fully acceptable to His Father. He bore our abuse to make His compassion perfect.
What we held in our hearts we poured out upon Him, shouting to kill Him! Crucify Him! Away with Him!
He took it to allow our rejection to become His bridge back to the Father for us all.
When the outcast makes intercession for those who despised Him, there can be no crime which He cannot forgive. Having suffered the guilt of all, He holds the keys of death and hell. He suffered both. It was perfectly unjust for Him to have suffered anything. Yet He suffered it all.
How can the gates of hell be opened? It requires someone upon whom death and hell could have no claim to go there. When justice itself requires Him to be released, then death and hell are conquered. This is what He would do. He would suffer the wrath of the guilty and vile, fully assume their punishment and abuse, and bear their penalty of death itself. When the fury relented, and the wrath ended, He could reclaim life. His captivity ended the captivity for all. Having then returned to life, because it was just for Him to do so, He acquired the keys of death and hell. Now He can open those gates for any and all because it was unjust for Him to have been put through either. He can now advocate for others by virtue of what He suffered and the injustice of that suffering. (D&C 45: 3-5.)