then why still use Electron? why not just c++-backend with an embedded http server for frontend that uses the browser
It was a standard practice for some applications in the .com days.
Electron is just another example of the disease making Web == ChromeOS.