Water does not remain locked up in the oceans, icecaps, groundwater systems, or the atmosphere. Instead, water is continually moving from one reservoir to another. This movement of water is called the water cycle.
Water that falls on the earth as rain, snow or hail the part of it is absorbed by earth's surface and some are used by living beings and part of it run through river into the ocean. So not all the water goes to ocean but some of it.