Here's why:
* Convection currents: The heat from the Earth's inner core drives convection currents in the liquid outer core. This means that hot, less dense material rises while cooler, denser material sinks.
* Electric currents: The movement of molten metal, which is an excellent conductor of electricity, generates electric currents within the outer core.
* Magnetic field: These electric currents create a magnetic field that extends far beyond Earth's surface, forming the magnetosphere.
This magnetic field acts as a shield, protecting us from harmful solar radiation and charged particles from the sun.