Remember, "voluntary funding" is provided by rich people who also have agendas.
To a MUCH less extent than is involuntary funding. Tax revenues come disproportionately from rich people, and political decisions about funding are disproportionately influenced by rich campaign donors. Corporate and university revenues, on the other hand are disproportionately from middle class consumers and students.
Voluntary to you somehow seems to mean controlled by "the rich", but that is obviously backwards. It is also not the point. Voluntary funding is disciplined. Universities have limited voluntary funds, since they can't tax it out of the unwilling population, and their research reputation affects what they can charge for tuition and receive from alumni. Companies only have revenues from goods and services people value, and the research they invest in must tend to promote that end, or the voluntary choice of their consumers transfers those resources into the hands of companies who better succeed at such research. Voluntary organizations must persuade their funding sources, or those sources will go elsewhere.
Government funding, on the other hand, is only limited by the amount of wealth legislators can forcibly extract from the citizenry. Unless government research funding somehow magically rises through the ranks of thousands of political issues to become the number 1 political issue in nearly every voter's mind, there is no discipline or regulating feedback.
Assessing research based upon its contribution to successful outcomes (yes, like landing on the moon or building an atomic bomb, but also improved consumer goods and services) is a more concrete way of efficiently guiding research efforts. Otherwise a given amount of research dollars is more likely to go to efforts with no outcome (like papers that nobody will *ever* read). Such outcome-based assessments are much more strongly baked into voluntary orders than coercive ones.
There is no doubt that the modern government-dominated funding model has produced a great deal more volume of research. But it is less clear that the usefulness of that research is much improved over the historical domination by private sources. And I suspect the value returned per dollar spent is considerably less.