Weathering
Ice, which can be miles thick, grinds the surface of the rock below it. The particles are carried with the ice, and if a glacier ends up in the sea, so does all the material carried with it.