It’s true it does cost to keep things running. But like you say there are ways around this to push server costs onto players, or simply allow offline play with online features disabled.
I think if there were legislation in place then design decisions would adapt. If it were costly to just shut a game down abruptly, there would be player hosted options in place from the start and ideally less spurious “always online” requirements woven into the fabric of every game.