Specifically, magnetism in Jupiter is created initially due to the extreme pressure that creates liquid metal on the planet. The atoms of hydrogen are pressed so close to each other that electrons freely move from atom to atom and are not bound to a single nucleus. The resulting electric currents generate magnetic fields.