Electron isn't popular just because it's cross-platform, but I think that is a big reason. The only other realistic option is Qt and that's looking increasingly dated.
Ive built quick little apps in Qt or wxWidgets for my wife, they use a few MB at most, they don't use any cpu unless you click on them (because naturally, theyre suspended), and the code bases are incredibly concise.
It really is, as gen z would say, a skill issue.
Or, said the other way around: Its simple and easy to use, and as a tradeoff you get no performance.
Every time I see any problems/advancements in browsers, I squint my eyes and they look exactly like an OS problems/advancements.
The way I see it, OSes of today is simply an implementation detail of the browser. 99% of the world won't even care or notice f Windows 12 is is shipped as a Ubuntu distro with familiar UIs. Heck, not even most developers will I think.
I have this thought when I ponder on the fact that most programming languages of today assumes a virtual machine of one kind or another. But...the OS is already a virtual machine (of the yesteryear I suppose). The only reason we don't have yet another level of virtual machine inside our browsers is that most browsers are almost fully compatible. Even each browsers starts having diverging APIs then its only a matter of time before someone creates an OS on top of browsers.