You could argue that API's aren't code -- they are merely descriptions on how to call a piece of code. And those kind of directions are not copyrightable.
It seems if they wrote their own code from scratch but it defined a similar API then that wouldn't be covered by a copyright. My understanding is that is what basically happened when they began treating code as a literary work.
For example, recipes are also not copyrightable.