Quote from the article " As a moon orbits a planet, that planet's magnetic field tugs at the moon, keeping it in its orbit "
I think you'll find that it's the planet's gravitational field that tugs at the moon keeping it in its orbit.
Any magnetic interaction between a planet and its moon is a far weaker effect that over the course of millions of years might cause a small change in the orbital distance of the moon from the planet.