If it has any actual use for anyone (e.g. separating dangerous people from society, taking stolen property/money back, preventing them from committing more crimes etc), that’s entirely unintentional.
shouldn’t those sorts of things be the actual goal of any “justice system”?