Watch out, your human exceptionalism is misleading you. Plenty of animals have a sense of morality (https://pmc.ncbi.nlm.nih.gov/articles/PMC6404642/).
For social animals (humans included) behaving morally can be adaptive behaviour. Your fitness is increased by group fitness.