Because the discord app is based on thr discord website. Its basically the same, but with an added launcher and some fancier interface. Atom is also webbased, just like VS. Its just easier to write it for web and than convert it into an app
That makes sense but then you have to have an instance of a browser running for each application and browsers are very heavy nowadays. Is that not an issue because computers usually have resources to spare these days?