Here’s an interesting bit of social organizational wisdom reflected in Numbers 5:5-8 (RSV):
5 And the Lord said to Moses, 6 “Say to the people of Israel, When a man or woman commits any of the sins that men commit by breaking faith with the Lord, and that person is guilty, 7 he shall confess his sin which he has committed; and he shall make full restitution for his wrong, adding a fifth to it, and giving it to him to whom he did the wrong. 8 But if the man has no kinsman to whom restitution may be made for the wrong, the restitution for wrong shall go to the Lord for the priest, in addition to the ram of atonement with which atonement is made for him.
The most common form of keeping order for most of human history was to have tribal or clan groups avenge infractions of a known code of conduct done to their members. It’s more famous in the breach than in the observance, but the threat of having a small war over infractions was incentive not to commit them in the first place, making antisocial behavior less likely on the margin.
This threat is (obviously) less effective when the offended party has no kin to avenge him. This is the wisdom embodied in the passage: ensuring there will always be somebody interested in seeing the penalty exacted. As a bonus this system protects the most vulnerable, i.e. turns the juiciest targets into the least appealing.
Few would argue this system is ideal, true, but the ancients had far fewer feasible alternatives than we have. Given their constraints, this is a clever feature.