The words “shams” (sun) is feminine, and “qamar” (moon) is masculine. The sun burns itself out to give light and life to everything around, and the moon is muneer, meaning it reflects the light. Within itself it has no light; it radiates the brilliance of the sun. So when we shine as men, the implication is that we are reflecting the glorious light of our women.
Sheik Abdullah Adhami
Well, I am not sure if this does justice to why things are masculine/feminine in arabic grammar.
But naturally, I am going to let this stroke my ego nonetheless.