When Mars lost its atmosphere billions of years ago, it transformed from a planet that could have supported life into a cold desert world.