Probably because they have stuff to do in the background and so have to keep the javascript running.
You don't need the whole browser frontend for that though, Electron also includes Node.js which is much less memory hungry.