I know how to make a hamburger. I know how to fry chicken. My burgers don't taste like McDonald's and my chicken doesn't taste like KFC.
Now suppose I find out the secret recipe. Now my food tastes just like the chains. Minor loss to them. What if I sell it to their competitors? Now it costs them a lot in loss of business. IP does have value.
What happens to our favorite whipping company if its APIs were all suddenly published?
IANAL, and therefore won't attempt to decide where and when liability comes into play.
/my thoughts