The video game industry almost immediately associated food with two key game mechanics: Food could be used to powerup your character or it could be used to restore your character’s health.
It’s impossible to escape advertising. They’re even in the games we play. Sometimes it’s as subtle as a vending machine bearing the logo of a real world soft drink, other times you play as a company mascot. It’s an effective way to reach an audience and extend the visibility of a brand, so a lot of companies have dipped their toes into it going as far back as the early 8-bit era of gaming.
This is especially true for companies specializing in food and snacks. Video games and fast food seem to go together like a Whopper and a Coke.