The rule of law is a political ideal, not a legal one.
The human brain is a social brain, and it evolved to deal with social relationships.