Tit-for-tat is a highly effective strategy when playing an iterated-prisoner's dilemma[0]... ie the "concept of justice" can emerge through natural selection if "intelligent beings" were forced to play such games on which their survival depends (a plausible model of "society").
[0] https://en.wikipedia.org/wiki/Prisoner%27s_dilemma#The_itera...