Sorry to disappoint, but this is an old and unspoken rule in the Orthodox Church as well, still valid in the the more traditionalist communities across Easter Europe... It is most likely based on a similar and very old Jewish tradition. Islam borrowed a lot of their rituals from the early Church and Judaism in Middle East.