It's the same thing musically (though admittedly there is a bit more, not a huge amount more, of cultural influence here); there is a formula for music that most people find really satisfying. The record companies have software that analyzes songs and scores against the common patterns that produce hits. Of course, the business of music is about more than just the music, it's about the whole package.
The worst thing about both kinds of products is that they destroy local diversity and teach people to consume things that are worthless at best and actively harmful at their worst.
Do people want to do drugs as much as possible? Yes. Do people want to pretend that candy is normal food and eat candy for every meal? Yes. Coke and McDonald's are supplying the latter demand. It doesn't absolve them of responsibility and it doesn't mean they're not manipulative or dishonest. It just means that there is a real, physiological desire backing their products that's not artificially created by cartoon clowns or polar bears.