Its the lack of a magnetic field like the Earth's that allows the solar wind to strip away any atmosphere Mars has ever had (or would have). The core of Mars differs significantly from Earth's which explains why the Earth has a protective magnetic field and Mars does not.