I think both Unity and Godot have ways to compile to WebGL. I don't have direct experience with Godot, but in Unity this would be relatively simple to do.
If this was made with Unity it would load a lot slower and perform worse. Unity is not a good fit for web. Godot might be better, I'm not sure. PlayCanvas is an option.