Gotham city is described since the 70's as a crime-ridden city. Corruption is rampant, thugs walk free and cops do look out for the mafia. And it rains all the time, and it's common to quite every version of Gotham since Dennis O'Neil (who wrote "Batman's Gotham City is akin to 'Manhattan below Fourteenth Street at eleven minutes past midnight on the coldest night in November.'")
Such a high crime rate is bound to have effects on the economy, but Gotham still is a major city of DC Comics' USA, with many big companies despite the risk to see their goods stolen by the mob or their buildings blown up by some batvillain.
Does any part of the canon provide an in-universe explanation for this? If not, is there any study or informed guess that would justify all this? I know Gotham City is based on Chicago and/or New York, so answers using these similarities might be good enough.