The defense industry has spent the last 40+ years grooming the DoD into thinking it costs $30mil/unit to produce missiles and drones. They should have rejected any of the bids, but being fueled by massively excessive taxes in the USA, they don't have to answer to any sort of efficiency or profitability. These things should cost less than a Toyota Camry.
If you think you can produce them for cheaper, you could make yourself a lot of money and save taxpayers a lot of money by starting your own company.
Five years later the startup had been bought by a major military contractor, budgets ballooned, a number of the original people (including me) left, our software was on its way to becoming the legacy solution, and the cycle continued.
After seeing how US military contracting works up close, I no longer find it surprising that military tech costs orders of magnitude more than commercial or consumer tech. It's also not surprising why so few organizations are able to do both government and consumer/commercial technology -- optimizing for one makes you ill-suited to compete in the other.