Earth is however the only one of the inner rocky planets which has a significant magnetic field.
Mars seems to have remnants of a magnetic field in the past, but probably it doesn't have a liquid metal core any more.
Mercury likely never had one for any length of time as it's very small.
Venus though is anomalous, but then again it's anomalous in other ways, mainly in that it rotates 'backwards' around it's axis in relation to the other planets, (although that rotation is very slow.)