That makes perfect sense to me.
McDonalds obviously made the game in the hope that it will sell more hamburgers. If you buy a hamburger, their strategy worked, which means they (and other companies that are watching) have a reason to do similar things in the future.
What’s weird about incentivizing behavior you like in the hope that you get more of that behavior?