Even if he did stop and order at McDonald’s, he’d probably still pay for his meal.
I’m betting someone like Gates stopped carrying a wallet with money in it decades ago and is so far disconnected from the price of anything because of his vast wealth that he may not even think to pay for his meal, not because he feels entitled, but because he has had ‘people’ to do that for him for so long.