Question: what is the difference between earth and a bar magnet?
Answer: The Earth's magnetic field is similar to that of a bar magnet tilted 11 degrees from the spin axis of the Earth. The problem with that picture is that the Curie temperature of iron is about 770 C . The Earth's core is hotter than that and therefore not magnetic.