They keep their processes secret instead under the current system, achieving a "trade-secret" like result for some drugs. For some drugs it achieves the same thing because finding a practical economic synthesis is the hard part rather than coming upon a small bit of chemical that is proven to be effective. For others it wouldn't matter whether you kept it secret or not, someone would isolate and characterize it and reverse engineer a practical synthesis.
The biggest value protector arguably of the patent-FDA approval process is on the FDA side, who create massive barriers to entry that mitigate close unpatented chemical competitors from outside the pharma oligopoly from competing.