How come this happens

I can diet all day long and the minute I see my boyfriend and he offers food I immediately give in and it becomes hard for me? lol