As we know that the ancients thought that the moon produced its own light. After many researches, now we know that the light coming from the moon is the sunlight reflected by its surface that acts somehow like a mirror but a bad one.Since it reflects only 12% of sunlight .We see reflected light only.
The Earth has its own magnetic field , it acts like there is huge bar magnet buried inside,but this bar magnet is not on the earth rotational axis it is shifted by some angle.The south of the bar magnet is on the magnetic north and the south polarity is on the magnetic north(image).As opposite polarities attract the magnetic needle (north) is attracted to the south polarity in the magnetic north.That’s why the needle always points north.If you want to know “why earth has magnetic field?”go to letter E.