Proto-Germanic Sôwilô Nordic: Sól and her brother Máni Latvian: Saulė sun and her husband Mėnuo moon , the earth is their dochter.
The Latin word Sol is male, en the related French Soleil is also a dude.
Buddhists: Suryaprabha is the female embodiment of the sun, and in Japan also of moonlight.
In the old Germanic and Gothic mythology the sun was also usually a woman, and the moon a man: Old English: Siȝel.
Egypt: The earliest known were the seven solar goddesses who followed one another: Wadjet, Sekhmet, Hathor, Nut, Bast, Bat, and Menhit.
According to this theory, the German speakers are actually keeping it the way that makes most sense.