The lawsuit was great publicity for McDonalds and their coffee. Paying the plaintiff was less expensive than an ad campaign for their coffee. And the news story got more attention than an ad campaign would.
That’s probably very true. Your cynicism warms my heart, lol!