I got my head around this by thinking where the air is rising at that time of the season. In N. Hemisphere summer, the continental landmass radiates more than the ocean, warm air mass rises, and pulls the moist air from the ocean onto land. In the winter, the other way (warm ocean, cold continental landmass) causing the dry monsoon.