I understand how people outside the US might not understand this, but it always surprises me complaints about "military spending" from educated Americans that don't understand these are actually enormous investments by the US government into general applied science.
The Army did not spend millions of dollars on a giant walking robot. The US government, by way of military spending, invested in research of the things required to build such a machine.