This seems somewhat contradictory with the fact that UIs/UXs are frequently patented[1], and most people don't have a problem with it. If someone made a phone whose user interface was a clone of iOS, most people would agree that Apple would have a valid legal case against the copycat.
We recognize that a major portion of innovation comes not just from implementation, but also from elegant interface design. Hence why User Interfaces are deemed patent-worthy. So why not programmatic interfaces in the form of APIs as well?
[1]: http://techcrunch.com/2015/08/03/swipe-to-patent-design-patents-in-the-age-of-user-interfaces/