A neutron star is the extremely compressed leftover core of a star that began life with between 10 and 30 times the Sun’s mass. Moving charges do generate magnetic fields, as you suggest; however, the rotation of the neutron star moves both positive charges (ions) and negative charges (electrons) together. Therefore, the overall rotation of the neutron star doesn’t generate a net electrical current or magnetic field.
Astronomy magazine subscribers can read the full answer for free. Just make sure you're registered with the website.