Here's why:
* The Earth's core is a dynamo: The Earth's core is incredibly hot and constantly moving, generating electric currents that create the magnetic field. This process is called a geodynamo.
* The crust is too cool and solid: The Earth's crust is much cooler and more solid than the core. It doesn't have the necessary conditions to generate a significant magnetic field.
* Magnetic anomalies: While the crust doesn't have its own field, it does contain rocks that have been magnetized by the Earth's main field. These magnetic anomalies can be used to map geological structures and the movement of tectonic plates.
To summarize: The Earth's magnetic field is primarily generated by the core. The crust, being much cooler and more solid, does not have its own magnetic field. However, it contains magnetic anomalies that can provide information about geological history.