Here is something to consider.
If you write a song or a novel, you and your heirs and successors retain the rights to it for something like 70 years without your having to lift a finger, and should it come to a dispute, you only have to prove you wrote it – which, should it go to court, should be a fairly simple issue to resolve.
If you invent something of commercial worth you have to spend tens of thousands of dollars patenting it in the various jurisdictions where you might want to sell it. If you are granted a patent, it is yours for twenty years from date of application. If it comes to a dispute you have to spend hundreds of thousands of dollars on lawyers to argue complex legal and technical issues to prove the validity of your claims in court.
Isn’t there something seriously out of kilter here?
The USA used to have the best patent system in the world. In 1998 in a supposed move to harmonize with the rest of the world, they made several changes. Notable among these changes is the publication of the application after eighteen months. Previously, your application was confidential and if the patent was refused, you still had a trade secret. No more. Worse, when the application publishes, anyone can challenge the validity of your claims even before you have a patent. As well, prior commercial use is now allowable as a defense in a patent dispute.