I use this method because I happen to know how to develop web servers and work with HTML/JavaScript. That's why I chose this approach. I assume they are in a similar situation, or they might have other considerations.
Over the past decade, there has not been a truly perfect and convenient way to develop GUIs. Everyone has been trying different approaches.
https://en.wikipedia.org/wiki/OctoPrint