A common phrase is about how you don't choose your family. But you often choose your friends, and many can choose certain communities to actively be in.
I think that you can have a sense of community, of some sort of greater good, of buy in, when you have that choice. For example, someone who has the choice of moving across the country to go to a school that interests them, to help out with an organization that aligns with what they are interested in, to work in an industry that they appreciate.
When society is built in a way to provide people the ability to move around, then those inside it will understand the value of it, and will be active participants in the societal effort. and they will be way more onboard with the "demands" from the society as a whole as a result. Though of course this is a question that can come up at every scale.
At least that has been my experience. I care a hell of a lot more about society when it has given me the opportunity to be part of communities that make sense to me, and to see how others get this opportunity as well. And so I gladly pay my dues, even if I might complain a bit.