Broadly: Constructing their hardware so it's impossible to repair or upgrade by anyone but them (or at all), then lobbying against any attempts to legislate the 'right to repair'.
My favourite is making the nvme drive accessible, but soldering the actual memory controller to the mainboard, so this ability to swap the drive is utterly useless to us.
Well the latest development is that Apple is now going to support the current right to repair bill in California, but people are rightfully suspicious that they're going to get some loopholes written in or otherwise neuter the bill.
They actually support right to repair laws. The joke is that they will make their hardware so difficult to repair that they are the only ones who can do it.
Linux suffers from being a patchwork of hobbyists updates, corporate additions, and patchy distro support. When it comes down to it, if you have an issue, you either have to solve it on your own or hope and pray the elitists on StackOverflow are in a good mood.
"Patchwork" sounds like a good way to describe Windows as well. Or at least it was when I was a Windows 10 sysadmin and there were two different settings menus to do everything.
Apple and Microsoft support aren't exactly awesome, either, unless you're a big business with deep pockets. At least with Linux, the system is open, so if there is a way to solve my problem, someone has almost certainly found it already and added it to Arch Wiki or Stack Overflow or something.