In the trial, McDonald's claimed that they served the coffee at that temperature because commuters would buy the coffee, drive to their destination, and
then drink it, so the coffee was served in a manner to make sure it wouldn't be cold by then.
However, it came to light that their internal research found most people drink the coffee while driving. The primary reason has been speculated but of course never officially acknowledged as what you suggest.