Isn't that simply because, until recently, JS had a "monopoly" on languages you could use inside a browser?
So if JS is the lowest possible level language, than that will be the compilation target for a program going into that context.
x86 has its many, many critics, but I've never heard any of them say that x86 is bad because so many things compile to it....