A system can have a magnetic moment even though its net charge is zero. It is because, the average charge of a system may be zero, but it is not necessary that magnetic moments due to various current loops will also be zero. For example, a neutron has zero charge, but possesses non-zero magnetic moment.