If justice is the idea of righting wrong, then if you think about it you wouldn’t have justice without revenge to give birth to it. Yes, revenge tends to not be inherently focused on right versus wrong, but it often feeds into it, and right versus wrong can often feed into the desire of revenge.
One of the reasons why the world tends to suck is that you usually can’t take that kind of satisfaction for yourself even in small ways. Usually when you live with bullshit in the family, bullshit from your boss, bullshit from school or college, and bullshit from society, there’s often no way for you to get revenge, usually not without suffering particularly negative consequences even though you’re the one getting bullshitted around. There are few equal or greater injustices if you think about it. Even more so if you can’t take revenge on abusive families.