Because with the ozone layer, the causes of the problem were much more narrow, the solutions were orders of magnitude cheaper, and they affected a much smaller industry, much less dramatically.
It’s not that the changes are “too damaging to the economy,” it’s that they’d need to be much more widespread. For example, everyone should have stopped driving gasoline engine cars at least by 2010, when the scientific evidence had already been undeniable for years, for anyone studying the matter in good faith. No such action was needed to deal with the ozone layer.
Compounding the problem for climate change mitigation is that it threatens the wealth of people in the oil, gas, and related industries. Changing refrigerant type for ozone hole mitigation was not an existential threat to any industry. The fossil fuel industry has plowed billions of dollars into propaganda and political influence to prevent or slow down changes.