Well, I suspect it's done because it's almost "free" and it's good PR for an engine I hope will become a great alternative to Unity. Here's more on the topic https://godotengine.org/article/godot-editor-running-web-bro...
I like the idea of a web-based Godot - reduces barrier to entry, and makes for lots of interesting possibilities - collaborative game jams?