It's a chicken-and-egg problem. When most people write in "phonetic" script, people stop using ambiguous words that sound alike, so these words fade away, which further strengthens the adoption of phonetic script.
If everyone around you uses Chinese characters, there's little incentive to avoid homophones, so they will remain a part of literary language, reinforcing the use of Chinese characters.