Our success story is the same as recent India one - we're just much smaller. We have educated population that was underemployed and poor, and western companies jumped at opportunity of replacing entry and mid level positions with cheaper workers, across both factory and office work.
At least that's the reason I've been given every time I've tried to take a contractor permanent!
Calling India a success story feels like a bit of a stretch compared to the better known Chinese case, or indeed Eastern Europe itself. They still have huge scope for further improvement.
If anything, big city CoL is the flip side of higher productivity inside the big city. If you're going to have an "idle" lifestyle, you'll be vastly better off moving to a small rural town where prices are a lot lower by default - same if you work fully remote. (Connectivity used to be a key barrier for the latter case, but fast mobile and sat-based connections have changed this quite dramatically.)
Productivity is only one of the smaller reasons. The other bigger ones are landlord rent seeking, nimbyism, mass migration, interest rates and real estate speculation, all of which aren't connected to your income progress. That's how productivity and employment in a city can stagnate or even decline while real estate prices can keep climbing.