They are formed by abrasion when boulders in the glacier are repeatedly caught and released as they are dragged along the bedrock.