The thin atmosphere of Mars is thought to be due to the planet's lack of a magnetic field, which has allowed the Solar wind to blow away much of the gas the planet once had. Venus, despite still having a thick atmosphere of CO2, surprisingly has a similar problem