Why Mars Lost Its Magnetic Field