Mars' core cooled, the churning of the molten iron stopped, thus weakening the magnetosphere allowing the solar wind to blow away the atmosphere.