Incidentally, one of the most interesting findings of those “monkey banana” studies is that non-human primates do have a sense of justice/fairness, and will sometimes act to protest injustice even when there is sacrifice involved in doing so.
Short-term costs are not the only factor.