Exactly, they should not be prevented. But what is the reason that some men forbid women to go to mosque? Is it lack of knowledge, or they are afraid women will not keep praying or what?