Earth is teeming with life now, but there was a time when it was likely just as barren as other relatively nearby planets appear to be.