Alcohol is a huge source of calories, not much different than raw sugar in that aspect. The human body, and the brain, adapt to that over-abundance of calories. When an alkie quits, it takes the body a long time to "reset itself" to the normal amount of calorie intake. In the meantime, the body will crave sugar while it adjusts.
Mike