In addition to his Venus example, Mars lost its atmosphere because it's gravity was too small. Not because it lacks a magnetic field.