From what I understand, even Apple is starting to build more of its services infrastructure in the cloud, although those agreements aren't being widely broadcasted.
With that view, it should be obvious that a hardware-focused company like Sony simply could not scale the internal teams and infrastructure required to support high scale software services like on-demand gaming. They were going to have pick a cloud infra provider, and with every cloud provider also making their own foray into gaming, they had to make frenemies with someone.