For billions of years, land on Earth was uninhabitable. But in the seas, predation allowed species to thrive before — and after — two mass extinctions.