Sin was punished and paid for in Christ so that God would be both the just and the justifier of the one who has faith in Jesus.