The JVM is actually good, but it is a bit too Java-centric. A VM without GC and with a more economic memory model is needed, and it looks like wasm is that.
And were these application servers (like JavaEE) that bad? Separately deployed EJB modules can also be considered microservices, and everything was much easier to manage.
First they do containers to replicate application servers, and now WASM to replicate bytecode server side.