Bacteria spores survive cooking and multiply if it sits warm.
Uncooked rice often contains spores of Bacillus cereus, a common bacterium. Cooking kills the active bacteria but not all the spores. If cooked rice is left at room temperature, the spores can germinate, multiply and produce toxins. Some of those toxins are heat-resistant, so reheating the rice won't make it safe.
This is sometimes called "fried rice syndrome," because leftover rice used for fried rice is a classic source. It usually causes vomiting or diarrhea within hours.
To keep rice safe, cool leftovers quickly and refrigerate them within about an hour or two. Spread rice out in a shallow container so it chills faster. Eat refrigerated rice within a day or so, and reheat it until steaming hot all the way through. Reheat it only once.
Day-old rice does make better fried rice, because it's drier. Just make sure it was cooled and refrigerated properly.