Of relevance to this behavior is a recent discovery that sleep loss increases levels of circulating endocannabinoids, which, as you may have guessed from the name, are chemicals produced by the body that are very similar to the drug cannabis. Like marijuana use, these chemicals stimulate appetite and increase your desire to snack, otherwise known as having the munchies.