But it's true that driverless car tech is unlikely to come out of direct government funding. Instead, that money should be going to fund quality education at all levels, and to build proven technologies that would solve many of the same problems the driverless-car pipe dream would only be an inferior version of--ie high speed rail links in the middle distance where it's a better form of transport than cars (driverless or not) and planes.
Companies are more willing to fund after the basic proof of physical possibility shows up. Vs the kind of this might be possible in 30 years projects DARPA gets off the ground.
PS: It’s often just as much about people getting experience working on these problems as it is any specific technology.
Department of Transportation topics for 2018: https://www.sbir.gov/node/1413255
Even if the research isn't done by government itself, it's likely the result of government grants. VC usually step in and reap profits way later
There are plenty of companies that are experts at getting those funds, which is essentially part of their business model. But it can be a big distraction for a small firm where it would likely be better to find private funding sources.
Even if it runs afoul of basic ethics and safety concerns.
The DoD, DoE and the Intelligence Agencies have dedicated R&D arms (DARPA, IARPA, ARPA-E, etc.) with long legacies of knowing how to to research and shepherd it into operational development states and/or commercialization. Even other parts of the civilian government has things like the NSF,
The closest the civilian world has for transportation is maybe NASA? But for self-driving cars, the DoT's R&D components are not well organized and seen very much as side-show "Administrations" and are generally new affairs. DOT's version of DARPA is called "RITA" and was formed only in 2005 by strapping together a handful of previous organizations inside of DoT and are focused mostly on, you guessed it, improving safety and studying statistics.
It's no wonder that most of the government research that's actually made progress in this area have all come from DARPA.