The APIs don't allow applications quite the same access as Apple Music has. I imagine that using them would weaken Spotify's complaints, while also resulting in a sub-par user experience. Users lose out in the short run, but I wouldn't necessarily blame Spotify for this.