I've an interest in ergonomics, if you could ref this study I'd be very interested.
and
https://www-users.cs.york.ac.uk/~pcairns/pubs/ChawdaCraftCai...
are good starting points. The essence is that people rate appealing devices as better performing, even if they factually work identical. Due to that halo effect they will perform on them better. The second source points out that if you measure something like 'type these 100 words' there will be no factual performance difference between appealing and unappealing devices, but on a higher level it does lead to things like more creative thinking.
My own guess would be pretty much what the studies say: people enjoy using appealing devices more, which leads to aggregate benefits: less stress which leads to more creative thinking, more use of the device, the device is better maintained, etc.
Although there is research that people perform measurably better on attractive gear. Aside from that, I believe around a third of all GitHub commits originate from macOS. Perhaps form and function often go hand in hand :)