The river being 5 foot higher than the moat floods in. At low tide the river flows out, ensuring that the water in the moat never gets stagnant.