There just weren't really many other places for people who wanted to work on those cool problems to go to work. So Musk had the leverage to push them really hard.
But software? Not so much! Programmers can work pretty much anywhere. Even for a cool project like driverless cars there's quite a lot of companies trying to do it. And how many of the driverless car programmers specifically want to work on driverless cars? They'd probably be cool with other AI projects, of which there are a gazillion.
NASA, Boeing (or any defense contractor, really), Planet for satellite engineering, Google/Waymo was doing self-driving around that time. I contracted for some random small self-driving startup around 2010.
> Google/Waymo was doing self-driving around that time
I was talking about Tesla's electric car origins. When they started they were the only ones making electric cars that you'd actually want.
However, the evidence suggests that this approach does not work for a research problem like developing self-driving cars. It seems that you can’t just yell at software engineers and make them stay awake all night until they make an AI research breakthrough. The difference with SpaceX/Tesla was that the hurdles were fundamentally manufacturing and efficiency problems (after all, we made it to the moon in 1969 - and in both cases Musk had a basically working prototype very early on), not problems of science research.