It is possible your dog is suffering from an upset stomach, and their instinct is to throw up as a form of relief. Dogs that eat to make themselves vomit usually swallow grass as quickly as possible, barely even chewing it.