For building a competitive AI they'd have to hire the talent, which is expensive and then do a massive investment, which may still end up far behind the competition. (See there attempts with Siri)
Now they can pick the model they want and if time is right they can still build their own.
In the end they still want to sell devices. They aren't doing a search engine (while they could), they are not doing an LLM model, ...