my dog had vomited twice in one day and was whining to go out. He has already gone out recently but I thought he might have diarrhea so i brought him out. Turns out he just wanted to eat grass, a lot of grass. i do think they do it when they are sick, I'm not sure if it calms their stomachs or induces vomiting, I've heard both.