Figma is written in C++ and compiled to web assembly. All the UX designers I know are using it because it's pretty powerful for a webapp.
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 :)
It was built to scratch the itch of the company Kaleidos.