Boyfriend keeps trying to sabatoge weight loss

I’m really confused. I was 5’6 and 265 lbs. My boyfriend told me that he still thought I was beautiful, he loves me at any weight etc. But he never wants sex anymore. I lost 50 pounds by calorie counting. My boyfriend keeps trying to sabotage this by buying me candy and stuff. Why would he be doing this? He is skinny