We dont exactly know that he did. Even christian's proceed through life on giant assumptions that an all powerful god, that created everything, would have to send his son to die a horrible death for his creations, as opposed to just.... making it so. If this is true, whats in the bible, this is at best a simulation that god is playing, that doesnt make a whole lot of sense.