I believe there are a number of reasons:
1 - most religious texts were written by men
2 - men are seen culturally as rulers, powerful and knowledgable e.g. as the hunter/gatherer, as the medicine man in native americans. As These are seen as characteristics of God also, he is labelled male...