It is a misconception that only carnivores have canine teeth. Many vegetarian animals possess them for other purposes.
Examples
Primates: Gorillas, orangutans, humans. Used for ripping tough plant material and defense.
Rodents: Squirrels, beavers. Small pointed canines for chewing and gnawing nuts and seeds.
Ungulates: Pigs. Small canines for fighting and defense, not eating.
The presence of canine teeth does not always dictate diet; evolution shapes teeth for specific needs.