I mean I've eaten food after 6 hours and I've never been ill
Bacteria, Fungi and Viruses can land on your food. Have you ever seen the condition of left-out yoghurt or bread? Mold is present within the air, it's stuff like this that can cause you to have an upset stomach or become seriously unwell.