I guess the sweet taste (which your body associates to simple carbs) causes a spike in insulin levels, and that lowers blood glucose levels, so you feel hungry, so you eat more. That's why you're gaining weight.
Or it's just a coincidence. Correlation is not causation.