>>43012123There are approximately 100 to 1000 bacterial and fungal spores per cubic meter of air, so it's pretty easy for rice or any food you leave to get contaminated. Aside from that, the common stories you hear about food poisoning from rice come from spores in rice that are often able to survive the cooking process. So they just sit there until you leave the rice out at room temp and they start growing again.
You can just refrigerate your rice, cold temps stop their growth, then just eat it immediately after taking it out of the fridge.