On the flip side, I believe Amazon counts their Office and Drop/Box competitors under AWS as well so it may not be as apples to oranges as first perceived.
The interesting thing about O365 is that it combines a very valuable licensing cash stream with a variety of services.
The story that Microsoft SEs used to sort of tell a few years back was that Microsoft needed so many spinning disks to support Exchange workload IOPS that they had ridiculous amounts of "free" storage available for low-IO workloads like SharePoint/OneDrive. No idea if that was true years ago or is true today.