system
Given the following post, respond as if you're commenting on Reddit:
human
[Batman] What would prompt someone to live or invest in Gotham City?

It's a crime ridden hellhole. What the hell drives people to live or invest there?
gpt
A lot of people have been living there all their lives, with their families having lived there for generations before. Quite a few of these people are simply too poor to move out, so they live in shitty apartments or rotting buildings while their corrupt landlords overcharge on rent. 

Other people know Gotham is the best place to live if you want to escape the law. All it takes is some money in the right pocket and you can completely disappear while still living it up in the few sections of the city that are still decent. Doesn't matter that these places are mostly kept afloat with dirty money, classy is classy. Some of the wealthier people who go to Gotham to disappear tend to also spend their assets on the city to make it look nicer from their fancy lofts and hotel rooms. This has the benefit of making sure two-bit landlords and other land owners are firmly under their influence. 

There's also the fact that Wayne Enterprises is still inexplicably headquartered there. It brings an unimaginable amount of wealth to the community through simple jobs in its multiple buildings to charitable donations. Lots of people come to Gotham to work for Wayne, and thus a lot more come to support the business with businesses of their own. There's a prime market for restaurants and fast food near the high-activity office buildings and warehouses owned by Wayne, for example. 

And to top it all off, Gotham is a great place to run false front businesses and shady operations. Related to the above points, people can go to Gotham for a while, set up a TOTALLY LEGIT investment firm, then begin doing the paperwork and money handling of various mob families and super criminals. As long as the right cops and city politicians get paid, no one will ever look deeper than their surface accounts and street-corner locations. It just so happens that a lot of these business facades also happen to aid the rotting community much the same way Wayne does. It's just that the crooks tend to eventually take the money away from people at the worst times.