My Apple Car theory: Apple was taken in by Musk’s hyperbolic claims that truly full self-driving was imminent and thought they could jump in and advance that timeline.
It took doing the work themselves to realize how far away we really are (and how full of crap Musk is).