That is where the desire for wage privacy comes from for me. Talking about how much you make, outside the workplace, has no benefits. It is just going to make the conversation awkward, or somebody is going to feel bad about themselves, or somebody is going to get an irritating spark of envy where none needed to exist. As far as I am concerned, you may as well publicize dick length.
(Public employees opt-in to the public knowing how much they make. The reason the public gets to know in that case is because the public is paying that salary. There is an employee/employer relationship there.)