Sure you could build a hardware abstraction layer for different processors and implement drivers on top of that, but you won't get the same traction/networking effect of Linux anytime soon.
Same goes for software stacks (TCP/IP, USB, WiFi, file systems, etc) which have been running on billions of devices before if you use linux.
The overhead of using Linux is in the range of 1-2MiB [1] so once your application requires external Ram because it doesn't fit the on-chip SRAM, you might as well use Linux.
[1] http://www.emcraft.com/stm32f429discovery/what-is-minimal-fo...
On the other hand I look at chips like the ESP32, and given that my coding skills started on Z80 computers, 512 KB is more than enough and actually more fun to use.
Given the set of high level programming languages I was using in those days, there is plenty of juice to squeeze out of those types of MCUs.
You can do that without Linux, it is just a matter of having bare metal drivers, the only issue is if it is worth doing so from the ROI point of view.
The problem being that for most use cases, for the price many of these boards cost, the majority will just go with the Linux option and install something like Yocto.