Now you don't have the data, program, or display in one place, sometimes not even in the same country. You've got different technologies that are always being obsoleted, across all the layers. Server OS, Database Layers, Web Server Layers, Cache Layers, DNS and Certificates, Encryption, the different platforms that the user might have from a Windows PC, or Mac, or Linux, or a tablet or phone with almost any resolution. Each of which has it's own set of filters and restrictions on content, cookies, anti-adware, security restrictions, bandwidth and performance differences.
You can't expect the latter to be anywhere near as consistent, reliable, or stable as the former. With the exceptions of bandwidth, and GIT, things have gone DOWNHILL in the last 20 years, and I see no slowing of this trend.
Not to mention the APP stores that can arbitrarily cut you off, without recourse.
Things like declarative UI syntax is still something new in the mobile world (SwiftUI, Compose, etc.), dependency management is a dark area (Android is a bit better, but a total mess on iOS/macOS development side), debugging experience for the web is miles ahead.
I usually ask myself the same question but in reverse – why mobile/desktop app development has not evolved to be like web dev?
* a widget toolkit is created and gains some traction.
* It starts adding features, becomes bigger and slower to download and execute
* users start leaving for the next toolkit, which promises a smaller, faster experience.
At this point, most webdevs have simply given up on desktop like toolkits, and only use what’s available on the browser, combined with a few lightweight libraries and an ui framework
ExtJS, React Native Web, and jQueryUI Mobile all “solved” this problem. Even Twitter Bootstrap could be considered a solution.
Why hasn’t one of these caught on and replaced bespoke apps? These frameworks are a lot to learn, difficult to optimize for narrow use cases, bloated, sometimes proprietary or inconveniently licensed, and often hard to maintain as browser capabilities evolve.
I developed on web, mobile, and desktop and I prefer a lot web development.