The reason for tides on Earth is