Yes, a small subset of games have downloadable server software; the ones that do are able to do so because it’s self-contained and unencumbered by proprietary components that can’t be redistributed.
Most games don’t, and they won’t be able to.
Licensing restrictions aside, how are you supposed to package a modern microservice-based network of servers into a single package that can be run on consumer hardware? And abstract over the specifics of the cloud environment you targeted so it can be run elsewhere? It’s pretty much a nonstarter.