Dogs eat grass when they need to throw up.
I'm pretty sure dogs sometimes vomit on purpose with the explicit goal of sharing food with humans, and/or just to eat it again for fun out of boredom. When my dog is bored he will often start preparing to vomit, and if I tell him 'no', he will stop.
We take our values and motivations as objective facts, and don’t even consider that maybe dogs enjoy eating grass, and also aren’t that interested in the weird sounds humans like to make with their mouths.
How sure are you about this? Everything I am reading seems to disagree with this.