Whether a food is low-risk or high-risk is not fixed forever. It depends on its condition, and that can change during handling. Dry foods, and foods high in sugar, salt or acid, such as those preserved in vinegar or lemon juice, are low-risk because bacteria cannot easily multiply in them. But once moisture is added, the picture changes. Dried rice is low-risk in its packet. Once it is cooked, it becomes high-risk and must be refrigerated.
Rice also shows why spores matter: Bacillus cereus can survive boiling inside a spore, and when cooked rice is left warm, the bacteria come out and multiply. Canned food is low-risk while the can is unopened, but once opened its contents must be treated like fresh food, moved into a covered, food-grade container and refrigerated. Leaving food in an open can risks metal residue entering the food. And opened packets of dry goods should be kept in sealed containers, in cool, dry conditions, so they stay free from moisture and pests.