An evolution of the demoscene has emerged in the form of a social network where 140 characters of JavaScript code are used to create incredibly impressive and compact demos. Check out Dwitter: https://www.dwitter.net/top/all
Because the browser is on top of the computer. Show me a browser implemented in hardware (not on top of a general-purpose computer) and I might change my mind.
Modern computers are VMs all the way down. x86 is also not implemented in hardware. The x86 machine is actually a VM running on top of the microarchitecture.
Also, browsers are no less general purpose computers than physical computers are. There's nothing you can compute in one that you can't compute on the other.
The more generalized aim here is not "run code with the lowest overhead" but rather "do cool stuff within surprisingly strict limitations." It's the same concept whether you're trying to write 256 bytes of 6502 assembly, or 140 bytes of Javascript.