It probably did, but the core solidified and lost its magnetism................
Elon needs to figure out how to restart core and make it molten again.