A long time ago, I recall having a conversation with the CTO of a company that made BBS software. We wanted to integrate with his servers, so we wanted the proprietary protocol. We advised him to build an API so that his software would become an ecosystem and thrive.
He smiled and metaphorically patted us on the head like a parent explaining the world to children.
“If we publish the API for people to write new clients, people can also write new servers that talk to the clients we write, and we’d be out of business.”
Skype’s motivation is obvious: If the protocol is public, while some people will write software that enhances the Skype ecosystem, others will compete with Skype, and that isn’t what they want.