Yeah, but at university you are more free to pick your project and can be much more nimble - so it balances out.
We've also thrown a lot of money in this endeavor, so there's research and building a foundation with the underlying intent that this will be used to help the company.
I don't think that's too different than the university model of grants and research.
Fortunately AI is hot right now so there are lots of projects where you can get funding simply by saying I want to apply machine learning to X.