Self-interest can make the world a better place—for animals, at least