WebAssembly itself is just (more or less) an instruction set, not a complete runtime platform. It doesn't define APIs for rendering, audio, input, filesystem access, networking, etc...
Electron provides all that, but at the very high cost of shipping a complete browser runtime with your app.