Ecological trading of goods and services between your cells gives you thought. Cells don t have compassion. They have do or die genetic programming. This includes an immune system. They cannot survive the failure of their symbiotic city of cells.
Genetic replication is bound by the economics of finite resources.
Given a barren planet and a single replicating gene in a puddle of volcanic acids, a monocology can persist only until it is easier to eat the original eater rather than the original food. Genes just replicate, but economics rewards conservation of existing resources and creativity to find new ones. If resources are already utilized by others, competition may be lethal, directly or by default. Lethal competition does wonders for evolution until it generates creatures intelligent enough to manage out the lethality. Call it morality.