Longer answer, you could buy lots of third party displays that worked perfectly well with Macintosh computers (and you still can) so that also means Apple can fail to sell you a display by not integrating it.
Isn't that a lot like how people can buy an iPad for "tablet stuff" but if they want a "real computer" then they can get a computer running Windows or Linux? I'm not seeing how buying an iPad locks people into buying a Mac laptop, desktop, or any other Apple product.
The iPad is absolutely capable of running Mac OS, but it's artificially restricted from doing so, in an effort to make you buy Mac OS. And there are Macintoshes which could easily run iOS, but they don't let you do that.
If people wanted a portable computer that ran macOS then they'd buy a MacBook. If people want to run iOS apps on their MacBook then they need only go to the App Store and download it. So long as the app behaves well with the "accessibility" alternate UI functions to allow use of a mouse or such then it should behave fine, if not then there's "touch alternatives" settings to fine tune the controls. It's not exactly like running iOS but it allows running the apps.
The iPad is absolutely capable of running Mac OS, but it's artificially restricted from doing so, in an effort to make you buy Mac OS. And there are Macintoshes which could easily run iOS, but they don't let you do that.
This distinction was created artificially and intentionally both to enforce a certain style of use and to sell more devices. The first thing is a marketing decision, that's understandable and even reasonable. The second thing is also a marketing decision which is also understandable, but repugnant.
There's no reason why Apple could not have simply let you run in both modes on both kinds of hardware, allowing you to choose, and to provide user interface standards for both types of interface â" and allow apps to implement one thing or both. And there's no reason why they can't switch to doing that.
Unless there is some kind of outrage from Apple users on maintaining the distinction between iOS and macOS it is unlikely Apple is going to do any different. As I see it Apple consumers are generally content with how it is now. I'll see some complaints here and there that the MacBook doesn't have a touch screen, or some complaints that their iPad can't be more like a MacBook, but for the most part few people find this "repugnant" or some kind of means to squeeze more money from consumers.
I recall seeing some company, long ago, that would make touch screen conversions for MacBooks. Does that company still exist? Or some other company offering the same service? If so then that is evidence of demand for more convergence of the MacBook and iPad. I'm pretty sure they closed up shop once the novelty of the idea wore off.
The question of whether they should be forced to do so is a lot more complicated, and even I'm not sure they should. But it's telling that Android is embracing Linux as the devices continue to get closer together, while Apple is still trying to distance their platforms from one another. But they're ultimately doing their customers a deliberate disservice. As Linux continues to improve, perhaps more slowly than it "should" but still doing so, there becomes less reason to stick with their artificially limited forced duality.
I believe there is a reason to keep the different platforms distinct. Not every person wants the same OS on every device. Each type of platform has different use cases and so calls for different kinds of user interfaces and capabilities. Load up your iOS with the added features of a MacBook and it can become slower, more power hungry, perhaps less stable, and that diminishes the utility of the iPad than add to it.
I've expressed in another comment on how I wished my iPad was more like my MacBook but that could just mean I should have bought a MacBook instead. Or maybe a Linux tablet.
I expect the products to continue to evolve so we may yet get ourselves a tablet that runs macOS. Apple reversed on features before. The Touch Bar appears to be dead, maybe I missed it still being available. MagSafe and the SD slot returned to the MacBook. Give me time and I can think up more. Maybe Apple will reverse on not having macOS on iPad.
Oh, and Lightning is on it's last dying breath, that's a reversal on policy of keeping it around in spite of pressure to adopt USB-C. That may have been a case of being dragged kicking and screaming into it by EU mandates than any realization that Lightning should have been considered obsolete much earlier. People forget that Lightning came before USB-C, and the early days of USB-C was not a smooth transition from micro-USB on portable electronics. I believe Apple was correct to hold out on Lightning for a bit until the kinks were shaken out of USB-C, but they got there eventually.