How does the idea of magnetic fields arising from circulating currents relate to permanent magnets?

The idea is that there are small atomic sized electrons moving in circles in the atoms.