Ans.What makes you think that god is a he ?
Your opinion of what you think god guides is only your opinion
God is neither a He or a She, He has no sexual bias or gender of any kind and is above such things.
But it is a problem of our language that we can refer to any one only as "he" or "she" or "it".
He is used for masculine and She is used for feminine gender and "It" is used for non living things.
In Arabic there is no "it", there are only two choices, He or She.
So one has to choose either one of them, if we pick any one, the other hall object.
In Common Usage, females are considered as "weaker sex" because they need protection. The laws of rapes and molestation and teasing are made to protect these "weaker sex".
Since Allah is to free from any weakness, even linguistic, that is why in EVERY religion, Masculine Gender is used for Allah, God or YHWH.
That does not make Allah, God or YHWH of male sex.
Allah knows Best.