The wisdom behind making up for

Q: Is it permissible for a menstruating woman to enter the Masjid (mosque)? What is the evidence for this?

A: All praise be to Allah Alone, and peace and blessings be upon His Messenger, and his family and Companions. A menstruating woman is not permitted to enter the Masjid, except by way of passing by or crossing through it, if she needs to, like the case of a person who is junub (in a state of major ritual impurity), for Allah (Exalted be He) says (what means): O you who believe! Approach not As-Salât (the prayer) when you are in a drunken state until you know (the meaning) of what you utter, nor when you are in a state of Janâba, (i.e. in a state of sexual impurity and have not yet taken a bath) except when travelling on the road (without enough water, or just passing through a mosque), till you wash your whole body. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.