This is a really good point which I realized recently moving between Japan and the US
The cost of living and quality of life is just so incredibly high in Japan despite the bad economy because they have exceptionally high social cohesion and virtually no crime.
When you remove the costs associated with crime, everything becomes suddenly much much cheaper. It's just how markets work. The simplest way to understand it is that margins can be smaller if there's less risk to be covered.
A shop in a dangerous neighborhood needs cameras, extra staff, security and still has shoplifting. They'll have to raise prices to cover all of that, so things get more expensive.
But that's just the most visible part of it. In reality every step of the supply chain needs sufficient margins to cover theft, fraud, or simply dishonest behavior. I remember growing up in Italy it was common for truckers to brag about "losing" 10% of their load. That just means everything else will *always* have to cost *at least* 10% more to cover the *potential* losses
Add 10% of loss to every time goods or services change hands, and the compounding effects of dishonesty become apparent
In the west you see rioters breaking shop fronts and justifying themselves with "it doesn't matter, they're insured". In Japan it is culturally understood that even the smallest rule breaking has adverse and compounding effects that negatively affect everyone else
If you look at Japan, a country with a GDP stagnant for decades and an average income for a man at the equivalent of $32,000, even in large cities people are able to open small businesses and thrive. Mass transit is efficient, people are courteous, and the streets are clean. Why?
The costs of crime are borne by common people. Every item stolen from the grocery store raises the price of the items that are actually sold. Every broken window and graffiti tag raises the rent on the building.
Japan can be a low-income society without being impoverished because they don't have criminals.