If Apple is going to produce cars, other car companies don't want to cooperate with them. CarPlay, sure, but not much else.
If Apple isn't going to produce cars, it's still a tough market for autonomous driving software. The biggest car companies are doing their own in-house, there are several independent companies already working on it, and car companies may end up just buying that software from the same vendors that they buy things like adaptive cruise control from.