Why is a big city with lots of open markets connecting people around the world a good bet for a safe place to live for your controversial artist, religious minority, or anyone who cares about personal freedom?
Because keeping the system working requires negotiation and compromise. The more people you can live with, and make peace with the bigger the market.
The market itself can be full of perversion and horrors. It's the imperative to cooperate that's valuable.