Because unlike the cost of mitigating climate change (or covid for that matter) the global cost of switching to other chemicals was very small, on the order of single digit billions of dollars. It turns out most people don’t want to radically upend their lives for the benefit of others who knew?
The conspiratorial explanation is that freon was cheap to make & not patented, while new more atmosphere friendly replacements were patented. The new refrigerants were also fairly drop-in.