Dogs eat grass when their stomach is upset so they can vomit and get rid of whatever may be bothering them.