That only gives you the client component though, which isn't very useful when the game servers shut down.
Most games these days don't have a self-hostable dedicated server.
In case of Steam/Valve specifically it happened a while ago with Counter-Strike: Global Offensive. Valve replaced it with Counter-Strike 2, and while GO's client is still usable, some of its online components are not.
It's only works because Valve probably have contractual obligations to not break online services for the game until console EOL. This can very well be the case if it was ever possible to actually buy it on Xbox.
Most games these days don't have a self-hostable dedicated server.
In case of Steam/Valve specifically it happened a while ago with Counter-Strike: Global Offensive. Valve replaced it with Counter-Strike 2, and while GO's client is still usable, some of its online components are not.