How did Mars turn into an uninhabitable desert? Curiosity rover rock samples may have answers