Ancient Earth may have made its own water