Do you mean there exist places in the world where you can't legally tell someone else what you earn?
You having a legal right to discuss pay means your companies can't prevent it, and you could sue for wrongful termination if they fired you for it. This is as opposed to the government having no opinion, and a company could fire you for discussing it, with that act still being legal.