OP is not referring to private lobbies in a game, they are referring to marking a game private on Steam itself, a feature that hides from the world (and your friends) that you own or interact with a game.
I just play while appearing offline, but that's a good idea if I don't want to be appearing offline and I don't want my playtime to be visible to them lol.