Meltwater at the bottom of the glacier can refreeze onto bedrock. As the glacier advances, bits of bedrock are pulled from the surface and carried with the ice. Loose rocks and debris are also incorporated into the ice at the bottom of the glacier.
Rock and debris falling from mountains lands on the glacier surface. This material is carried along like it was on a giant conveyer belt.