Are you saying its an electron app running web assembly?
It was built to scratch the itch of the company Kaleidos.
I guess except the designing canvas, all the UI controls are built over DOM/Javascript and they needed a quick way to take them all into desktop. But I did expect more from Figma :)