No. There is no duty to publish anything.
Intellectual property is about someone having ownership over an idea. It does not mean that you have a right someone gives his idea to you. These are totally separate things.
I am free to write, paint, code or film whatever I want. I have zero obligation to share that with anyone.