Why would publishing it be automatically considered as an intent to give up your ownership over your intellectual property. And if that is the case, then the same should apply to copyrights. If you don't register with the copyright office your blog post, article, music, source code, graphic design, etc, before making it public, than those would automatically be public domain, where I can take your IP, put my name on it, and sell it for a profit.
But copyrights are basically free, and apply automatically at the moment they are created by their authors.
"Copyright is a form of protection provided by the laws of the United States
(title 17,U.S.Code) to the authors of “original works of authorship,” including
literary, dramatic, musical, artistic, and certain other intellectual works. This
protection is available to both published and unpublished works. Section 106
of the 1976 Copyright Act generally gives the owner of copyright the exclusive
right to do and to authorize others to do the following"
"Copyright protection subsists from the time the work is cre
ated in fixed form. The copyright in the work of authorship
immediately becomes the property of the author who cre
ated the work. Only the author or those deriving their rights
through the author can rightfully claim copyright"
"Is my copyright good in other countries?"
"The United States has copyright relations with most countries throughout the world, and as a result of these agreements, we honor each other's citizens' copyrights."
So if you create a story about a boy wizard who goes to wizarding school, you own that work and you also get to own the imaginary characters that you created, No one can write a story using your specific boy wizard character. All this happens instantaneously, across multiple countries, for free as soon as you write it.
You spend thousands creating a better internal combustion engine, you have to go the patent office (and maybe get a patent lawyer), pay huge sums of money, wait years to hear from the patent office. and after all that you get to claim that you own your own invention. And you have to do this across each country you want to claim that you own your own invention, so that others can't take it, put their name on it, and sell it for a profit and give you nothing.