Emotional eating

So I keep seeing things everywhere about 'emotional eating'. I read the words and coyly think 'wow how can people give up so easily when some sort of emotion hits?' Then bam! There I was eating fruit pie and nutella after and argument with my fiancé knowing the whole time that I'm not in fact hungry, I really don't even like pies that much, and that I'm emotionally eating! It's set my whole day off to such a bad start and I'm so mad at myself for doing it. Why does feeling a certain way do that to some people (including me) and how can I not do it?