Which means you get all the bloat of re-shipping an OS (js libs), because the ecosystem as a whole would rather have diversity, speed of framework iteration, minimized developer time, and absolutely minimal client friction.
And by and large, those have been good choices! Look at how far the web's come in just the last 30 years.
But as you note, many of those goals are incompatible with game engines, which have seriously tight minimum performance requirements.
So what do you think are the most important priorities for a 3D world format? I'm assuming performance (rendering and network) comes first, but what gets optimized for after that?
We know how to build user-created virtual worlds, but we don't know how to make them fun. I could say more on this, but not right now.
Consider the web today. We have web pages that display some text and a few pictures. Yet viewing one requires downloading tens of megabytes of data, perhaps a hundred network transactions, a few gigabytes of RAM, a CPU or two running at upwards of 3GHz, a little help from a GPU, and several seconds of loading time. This is an awesome level of inefficiency. Today's web browsing uses at least an order of magnitude more resources than it should based on what appears on the screen.
We cannot afford that level of inefficiency in good quality 3D worlds. Just doing a good 3D world with every known optimization is at the upper limits of what available hardware can do. Watch the Unreal Engine 5 Matrix demo to see what's possible with the best known techniques. Then read up on what's done to put those meshes into Nanite format, an appallingly complex, insanely optimized, and very clever representation. One full of internal offset fields, so hostile content would be a huge problem.
That's the problem with adapting web technology to virtual worlds. If you make the system as general, portable, and robust as web services, it's too bulky, too slow, and too low-rez.