An asteroid impact millions of years ago may have provided a natural incubator for early life on Earth, scientists say.