A team of European neuroscientists led by Giovanni Marsicano of the University of Bordeaux has found that, in mice, THC fits into receptors in the brain's olfactory bulb, significantly increasing the animals' ability to smell food and leading them to eat more of it. A big part of the reason why you might eat more food after using marijuana, the research indicates, is simply that you can smell and taste it more acutely.
— Read more at A Scientific Explanation of How Marijuana Causes the Munchies at the Smithsonian.