One such instinct comes from your pup's wild ancestor's habit of scratching at piles of leaves, dirt, or pine needles.
The act of moving the materials around is to create a comfortable mound of bedding.
By moving his or her blankets around, your pup may actually be trying to create a snug nest in which to sleep.