Or maybe if web didn't evolve to be the way it is today, we would have got better operating system sandboxes just like how mobile OSes do? I'm not sure.
... For example, some anti-cheat engines for games which shall not be named may scan the entire local filesystem and even upload suspicious files to their own servers. I personally would never want to run such applications unsandboxed with my own computer. And since all operating system sandboxes on PC (non-mobile OSes) are not widely used / not enforced / hard to configure, the only way is really things like WASM, WebGL and all the web stuff people might not like.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!