Having Apple dependent on and paying for Microsoft infrastructure is a win for Microsoft. Of course the deal benefits Microsoft as much as Apple.
Microsoft needs Apple as a strong competitor. Otherwise they will be declared a monopoly and broken up by regulators. Microsoft was smart to use OpenAI as a proxy for this deal.