A lot of things need to go right for a planet to be habitable, and one of the most important things is for there to be an atmosphere.