Islam is a very logical religion, but there are certain things that we accept without knowing the reason for which they are given. May I ask why men are allowed to marry four wives? I was told that this is because the number of women is greater as compared to the number of men. Is that so?
Where God or the Prophet, peace be upon him, states a reason for a particular ruling, then we are certain of the rationale behind that ruling. In such case, where the cause is not applicable, the ruling may not be applicable either. On the other hand, many rulings are given without any particular reason mentioned for them. In such a case, we may only assume the reason on the basis of our understanding. We say that what we come up with is a possible reason, without claiming it as a certainty.
Neither God nor the Prophet, peace be upon him, has told us the reason for permitting men to have up to four wives at the same time. Therefore we cannot attach this permission to any particular reason. We may say, however, that this ruling has certain benefits, providing solution to a number of social problems.
Take for example the case of a woman who has some chronic illness, which makes her unable to meet some of her marital duties. Her husband may not wish to divorce her, but he needs that fulfillment.
Allowing him a second wife serves the interests of both man and wife. A man may also dearly wish to have children, but his wife is incapable of giving him children. Do we insist that he divorces his wife in order to marry another woman who can bear him children, or allow him to retain his wife and marry a second one?
The reason you have been given is not a universal situation. It may happen in certain communities in different periods of time. If it does, polygamy is a good solution. If not, there is bound to be less polygamy in a society where men and women are equal in number, or where men are less than women.