How do swirling liquids in a planet’s core help create a protective magnetosphere?

How do swirling liquids in a planet’s core help create a protective magnetosphere?
By observing the X-ray emissions from the Jovian planet, scientists speculate that the planet’s magnetic field could be causing unusual aurora