I have a child who insists on eating a snack every day in my class. He says he cannot focus because his stomach is empty. This is the last class of the day.
I agree that is is not good to tell a student they cannot eat in class when it is not an issue.
Speaking to the child is helpful, but maybe getting parents involved would be more beneficial.