 Because of Jesus Christ. Because when we came to faith in him, he declared us righteous. Not because we were in ourselves so good, but because he paid the penalty for our sin and we came to him by faith, believing him, that he would declare us righteous. He paid the penalty for our sin, so we didn't have to.