There are billions if not a trillion(s) going into defense tech.
The US and its NATO allies and its wider allies who have contributed
equipment to the Ukraine war they need to replenish and replace
stuff.
At the same time the Ukraine war has changed a lot of the battlefield strategies that will require development of new advanced weapons. Most obviously in the areea of drones / counter-drone space. but lot of other technology as well.
With all that money of course companies will chase it. OpenAI is already joined up with Anduril.