Primitive people with no understanding of anisogamy ascribe the masculine gender to the sex that produces the smaller gamete. In the birds, the sex that produces the smaller gamete is the one with xx chromosomes. Cockerels, vainglorious, showy, aggressive, masculine individuals, are, in terms of mammals, the females. In the birds, the possessors of the xy chromosomes lay the eggs, stay at home, and look after the babies. Naturally, primitive Palestinians were more impressed with vainglorious, showy, aggressive characters, and noting in their own societies that the noisiest, most aggressive, and stupidest individuals were males, naturally ascribed the masculine gender to the great big (fictional) individual in the sky. The sex of the Holy Ghost is not in doubt since it inseminated Mary by whispering in her ear 'Honest, Dad, nothing happened: he whispered in my ear and . . .' Well, if you believe that, you'll believe anything. I have a solid gold brick for sale, just for theists. Let me know your offers, it is going cheap.