Dogs' nesting is a kind of territory marking. Dogs encircle their bedding area before sleeping to marks their property with their scent. It is like keeping a blanket and telling it my area. But, it is not just limited to this because dogs nest in bed also because of maternal instinct it happens more often if puppies are arriving.