Our Judge (the one who can condemn us) has become our Advocate (the one who doesn’t condemn us) because he is also our Substitute (the one who takes our condemnation).
The world we inhabit is wrong in so many ways, and a holistic approach to this “wrongness” traces its cause both to sin itself and to the effects of sin.