To keep the den clean and hidden from predators
A nursing mother eats her litter's waste to keep the den spotless and to erase the scent that could draw predators to vulnerable pups. It's hardwired hygiene โ which is why some dogs carry the urge into adulthood, long after there's any den to protect.