Fair point.
The problem is military hardware research is always "cutting edge" in times of conflict, such as the times we live in, for obvious reasons because that's how you win. There's loads of examples of militarily developed inventions being used in civil applications to the benefit of all: Penicillin, Perspex (Plexi-glass), Thermal Imaging Cameras, Nuclear bombs came before Nuclear power, etc. That's where the money is invested and therefore funding is provided.
What's good is that civil applications can be provided as a spin-off but minus the research costs which have been absorbed by the military research. Granted, it's a shame the money isn't there for development in civil applications first but if you do not defend your civil infrastructure, then you have to buy someone else's invention or self fund the R&D costs commercially, thus increasing the cost of the end product to offset.