Vomiting and diarrhea in children are often caused by gastroenteritis, which is an inflammation of the stomach and intestines. This can be due to viral, bacterial, or parasitic infections. Other causes include food allergies, intolerances, and sometimes even stress or anxiety.