Earlier quoted context omitted.
> I don't think we know exactly what gives a body a magnetic field, or how it is maintained, but rotation seems to be important. The magnetic field on Earth is caused by electrical currents flowing in the rotating molten metal of the outer part of our planet’s core. You’re right, rotation is an important factor.
I've long suspected that tidal forces from our moon may be a big factor in keeping the outer core liquid, and thereby keeping our magnetic field active. I have no idea if that's actually true, but if it is, both rotation and a large moon might be requirements for advanced life.
It seems possible that during certain times in the past, the lengths of the day and month (and year?) were in close enough resonance to accelerate loss of rotation for a while, until the change drove them back out of it .