Eating brings on the production of stomach acid to help digest the food. Often, the presence of this acid in our stomach feels like hunger. If you're going to bed without anything on your stomach, no acid in there to wake you up with night munchies. (my theory)