The correct answer is: because the Moon is closer to Earth than the Sun is.
Although the Sun is much more massive than the Moon, the gravitational pull that affects tides is dependent on distance. The Moon, being much closer to Earth, has a stronger influence on tidal patterns.