MacOS being a bad example here since Apple only needs to make its OS work on a very small set of hardware that they control wheras Linux (and Windows, yes) need to work on probably hundreds of thousand if not millions of devices (including Macs 👌) with at least the same amount of peripherals combined in almost any imaginable way. That’s a completely different task.