A human culture is formed by the thoughts, aspirations, beliefs and language of people. Hebrew culture over a period of 2,000 years came under the influence of the true God who revealed himself. God chose only men from, Abraham to Christ, through whom he made himself known. Why is that? In the book Numbers we find Aaron and Miriam, the older sister of Moses, questioning his authority because they considered themselves prophets. "They said, 'Was it only to Moses that God spoke? Did He not speak to us as well?" (Nm 12:2) God was not pleased with Miriam who became a leper. (Nm 12:10)The Hebrews spoke of God primarily in masculine terms. God in himself is spirit and as such transcends gender duality so why are Hebrews names, pronouns and metaphors referring to God expressed in masculine terms?
"The Jewish revelation was distinctive in its exclusively masculine pronoun because it was distinctive in its theology of the divine transcendence. That seems to be the main point of the masculine imagery. As a man comes into a woman from without to make her pregnant, so God creates the universe from without rather than birthing it from within and impregnates our souls with grace or supernatural life from without. As a woman cannot impregnate herself, so the universe cannot create itself, nor can the soul redeem itself. Surely there is an inherent connection between these two radically distinctive features of the...biblical religions...: their unique view of a transcendent God creating nature out of nothing and their refusal to call God she despite the fact that Scripture ascribes to him feminine attributes like compassionate nursing (Is. 49:15), motherly comfort (Is. 66:13) and carrying an infant (Is. 46:3). The masculine pronoun safeguards (1) the transcendence of God against the illusion that nature is born from God as a mother rather than created and (2) the grace of God against the illusion that we can somehow save ourselvestwo illusions ubiquitous and inevitable in the history of religion (1994, p. 98, emp. in orig.)". (apologeticpress.org/Is God Male by Bert Thompson)
This does not mean, as indicated above, that reference to God in feminine terms was not used, if only rarely. For example, "As a mother comforts her child, so I will comfort you; in Jerusalem you shall find your comfort." (Is 66:13) This makes a reference to the ability of God to give us comfort like a mother, but God is never called mother or referred as she by the Hebrews.
C.S. Lewis has this to say, "Christians think that God Himself has taught us how to speak of Him. To say it does not matter is to say either that all the masculine imagery is not inspired, is merely human in origin, or else that, though inspired, it is quite arbitrary and unessential. And this is surely intolerable."