religious matters are associated with sentiments.Sentiments can not be ruled by law.Whether they are Muslims or others they all have certain rules as per their mythology. If you place a close look neither Mosque or any holy places allows free entry of all casts/religions