I'm not saying anyone has to like it, but there's an inherent advantage in not having to support other hardware of varying degrees of quality. Honestly, I'll take that form of vendor lock-in over frequent pointless changes, having advertising shoved in my face, and being forced to have an online account. Perhaps my opinion will change if Apple follows suit (they won't), but for now it was pretty easy to set up my M1 Macbook Air without signing in with an Apple ID.
Is this a real question? Many of the edge cases, both high cost and low, would disappear for Apple.
Additionally, all the tech support will fall on them.
Lastly, any bad user experience (cheap device with crap battery, low quality hardware that doesn't match the software experience, etc) would have a negative effect on them as a brand.
I've been on both sides of the fence, worked for a Linux company for a few years, and I'm very happy in the walled garden.
The software component in a Mac or an iPhone is larger than in a microwave oven. There is still equally zero incentive to port it to third-party devices, because it's the devices that bring in the revenue; software is a cost center.