The reason why Electron has won is because native platforms couldn't be arsed to agree on a standardized native UI framework integrated into the platforms (and not just Microsoft, Apple and Google (via Android), but also 'Linux on the desktop' which is
still the same fragmented mess as it ever was (arguably worse after Wayland will replace X11 any moment now).
Electron's success is strictly to blame on the desktop platform owners/maintainers dropping the ball, consistently and repeatedly for the last 3 decades (Microsoft's UI framework 'evolution' is especially hilarious, who in their right mind would write an application against a widget library that's going to be deprecated in 3 years).