Exactly right. It takes a huge amount of expertise, facilities, and tech to make GMP medicines for humans. If someone leaked the process before the patent was filed, some generics would just instantaneously file the patent. It's a nice thought, but as rational as "What if everything was free?"