Have you ever worked in food services or retail? If not, you don't know what you're talking about, because this kind of thing happens all the time because people abuse the system.
The parent commenter is not even the one making up the reason. She/he is simply explaining the reason why such a policy commonly exists.
FWIW, most places also allow the workers to eat the food before/during/after they work there.