As they say, "A hungry man is angry." There is a certain hunger that will strike you that you will forget you are taking something that doesn't belong to you.
Just like you've said, if it is taken to satisfy his hunger at the moment, it is not known as stealing, but if he takes extra for the next day, then it is.