I don't really agree with this reasoning, since to make it a fair comparison wouldn't you have to ignore any pleasure you get from the dip? A lottery ticket gets you a "little thrill" of the possibility of winning, and the dip gets you a "little thrill" of having your sense of taste stimulated. As you said, the other effects may be negative just as easily as they can be positive.
The framing of dip as having fundamental value because it tastes good only seems to make sense if you already like dip and don't like gambling. Possibly reinforced by some perception that feelings are bad and ought to be ignored, while hard facts like calorie counts and chemical reactions are real and admissible as evidence (this is not meant as a personal attack, it's just something that our society often reinforces).
What if we start on the opposite side of the issue than you did? You get
"What is the value in buying dip? The expected value of the dip itself is negative, relative to its purchase price (the expected value is zero, if you acknowledge that extra calories are not inherently good or bad). So the buyer gets additional value from the 'little thrill' of the eating and tasting of the dip.
"With a lottery ticket, you clearly value the experience of having the ticket more than the money in your pocket. Gambling feels good, creates the possibility of financial gain, and maybe has some bad side effects.
"Junk foods lack fundamental value, and the 'little thrill' often turns into a bad side effect (eating disorders)."
Of course, it's possible for dip to have a much higher expected value if you need those calories, but I don't think that's what we're talking about here. So what makes the sensation of enjoying how something tastes have 'fundamental value' and the sensation of enjoying the possibility of financial gain not?