They're not called earthquakes but moonquakes. They are caused by the gravitational influence of the Earth. Unlike quakes on Earth that last only a few minutes at most, moonquakes can last up to half an hour. They are much weaker than earthquakes though.