C# is very popular in game dev.
Unity, Godot, and the XNA successors (Monogame, FNA etc) all use it.
It's higher level and more productive for the average programmer than C++, but still has static typing and much more mature libraries than Lua and other dedicated game scripting languages (of which there used to be many).
A lot of game development is Windows centric, and many C++ game devs prefer Visual Studio (the full fat one, not VS Code). I'm guessing MS is seen more favourably in gaming circles than it is in web dev.
Windows and the Xbox are both tier 1 platform targets for game devs as well.