Apple has a major multi-year agreement with Amazon Web Services.  Apple spends way more on Amazon’s cloud than any other company. Starting right back in 2011, iCloud has been based on AWS and Azure. This was acknowledged by Apple in 2014 as well.