Quirks of the human body and mind trace back to enormous transformations on Earth billions of years in the past.