The evolution of the Earth's first animals more than 500 million years ago caused global warming, according to a study.