also why is god a he? i don't think a theoretical creature like that would really have a specific gender
It could be because of the way the rules of most languages are. In them I think whenever somebody or something's gender is unknown or ambiguous a male pronoun is supposed to be used in that case.
It could also be from people taking the line where God created man in his image too literally, which is what I think has happened.