This is a very powerful notion in general. In an extremely real way, justice is just "codified vibes." The primary purpose of a functioning judicial system is really to allow the public to sleep soundly in their beds at night.
*In some countries.
In others, the primary purpose is rehabilitation so people can eventually re-join society as "better people".