The moon changes its distance from Earth as it rotates around its axis an also revolves around Earth. It orbits quite fast. At night, the moon rises and the distance between Earth and Moon is lesser. Therefore, sea waves get attracted towards the moon and get stronger.