When we judge other people's good and bad deeds, we engage in "karmic accounting", offsetting minuses and pluses with intuitive formulas.
Principles of karmic accounting: How our intuitive moral sense balances rights and wrongs