Waves break on sandbars that form on the ocean floor due to currents and wave action. The sand bars can shift with different storm and swell patterns which means that waves don't break in the same spot every time. With all the water coming towards shore via waves, that water needs a way to get back out to sea.