not dependent on the server
It doesn't have to be - a developer could also provide a HTML file that the user can download and open locally.
And to be honest, if someone had to build a user-friendly cross-platform GUI app for connecting to some sort of serial device, they'd probably just end up using web technologies (Electron or Tauri) anyways. May as well avoid the extra overhead of Electron.