1. Stability for the project. A self-driving R&D project internal to a larger company risks getting killed over the N years it takes to do the work without any payoff.
2. The investment probably looks better on the parent corporations budgets. They aren't sinking billions of dollars into R&D, they're investing in a third party which is sinking billions into R&D. The shares might even look good, if non-liquid, on paper.
3. Segments liability away from the larger company. When all self-driving cars in the world make a left turn at the same time due to an obscure calendar bug, it's just GM Cruise that gets sued out of existence.
Self driving right now is a moonshot for many of these companies, and competing with the resources that Google can throw at (both in terms of AI talent as well as sheer money) can be tough. Partnering with GM allows Honda a piece of this, allows for future adoption, and consolidates both of their revenues. If Cruise does become successful, the thought process might be that both Honda and GM obtain the tech therein, and differentiate themselves via other methods. Imagine this to be a new engine type that is too costly for just one manufacturer to research, and so they partner up with the implication that both get usage rights once the engine is done.
There's probably some value in locking themselves in as the exclusive provider of Cruise-enabled cars