Exactly what it means, I.e. being in the company of, or surrounded by, people who know what decorum and social rules are.
Being in polite society is wetter than an otters pocket if the people in said polite society don't follow their own decorum and social rules.