Rice that is not yet cooked might contain Bacillus cereus, Which is the bacteria responsible for food poisoning. These spores can survive even after the food is cooked. If you let the rice at room temperature for a long then these spores grow into bacteria which can harm your stomach if you consume the same. These bacteria produce toxins and multiply in numbers within minutes.