It's both withdrawal and an evolutionary need. Sugary foods are high in caloric content, so we're hardwired to want it / seek it out because for most of human history sugary that was a benefit. Not so much now though of course.