Before Islam every nation or tribe moulded the Divine Being in accordance with their culture or circumstances as if God belonged to them. Essentially the Divine Being was like them but with super-human qualities. However, ‘He’ had the same needs as humans. That is why the name used for the Divine Being had a masculine and feminine form, singular and plural forms etc. Allah is the only personal name of the Divine Being which is free of such restrictions.
It is true that the Holy Quran also uses ‘He’ to refer to the Divine Being but this has to be seen in the context of what the personal name Allah stands for – He is unique in His Being. The use of the masculine pronoun simply shows the limitations of linguistically trying to express a concept beyond our comprehension.