The Bible doesn't describe God as either male or female.
It describes he/them as one god with three aspects,
something like father,son and holy ghost.
I think the Hindu's came a little closer in describing him as God the creator, sustainer, and destroyer.
It is "man creating God in man's image" to turn around and say God is a male or God is a female.
But yes, biblical writers telling a story 5000 years ago had to tell it in the frame of reference
understood by the people of the time.
Since they understood men and women, not holy ghosts, the story comes out that way.
Actually Genesis has been mis-translated. The Genesis original actually states "Let US create man in OUR image",
as though God was having a dialog among his multiple selves.
Again, this is so outside the domain of our understanding, it is useless to try to explain it with human reason.