That half MiB of jar file requires the full JRE to run, so it's not exactly a fair comparison.
Electron also doesn't need to be installed multiple times, on my Manjaro there's a system package for every electron version that many electron applications link against.