
Because foxes rely solely on a meat based diet, but dogs (being domesticated for thousands of years by humans) require varying amounts of meat in their diet depending on breed and job. There are some breeds of dog who actually require a diet that's more plant heavy with some meat and protein included because that's just how that breed evolved over time with humans. That's a simple version because I didn't want to long rant at you, but I hope that helped!

Interestingly, we’re actually finding that categorically “carnivore” is not really helpful when it comes to classifying most species. Large cats certainly, but not canidae. Wolves and foxes, especially in the wild, regularly eat berries and nuts. Whether this is supplemental when animal protein is scarce or a regular and necessary part of their diet has yet to be determined given how little research has been devoted to such predators until recently (the last few decades) but just thought I’d add to your excellent explanation.

A fun addition: there are actually very few animals that are considered true herbivores and even those animals eat some kind of meat or animal protein when they get it!! Horses, deer and cows are some animals that are considered true herbivores but have been shown to occasionally eat small birds or even young! Even small herbivores eat other small mammals, insects or small birds if they can!
Umm, how is a dog an omnivore compared to a fox?