When dogs in the wild caught prey to eat, they would bury the leftovers in the ground to come back to at a later time.
Some dogs will bury food because they are too stressed by the environment to eat it comfortably.
Digging helps calm the dog down and gives them a chance to eat at their own pace.