The moon dosent revolve around earth as the earth rotates the moon stays in the same place
As a result, although the Moon is moving to the east relative to the stars, the much faster westward motion of the sky is carrying it to the west, so despite its eastward motion relative to the center of the Earth, it rises in the east and sets in the west, just like any other celestial body.