Causes of vomiting and diarrhea at the same time. Vomiting and diarrhea can happen at the same time for a number of reasons. A stomach virus or bacterial gastrointestinal (GI) infection is the most likely cause in children. The gastrointestinal tract is part of the digestive system.