I had a relative in the Air Force, and his group was in charge of salvaging programs that failed because the contractor couldn't deliver. They would get half-finished satellites and boxes of parts arriving at the loading dock and then try to figure out what to do. Is someone criminally culpable? Can we do a contract to finish this, or do we need to start over?
According to him you could just never tell - sometimes the contractors you were sure would fail actually delivered, and sometimes the old reliables went belly up or just kept asking for more money.
Thankfully I'm no longer attached to that program, had to continuously bite my tongue and pick my battles in code reviews to avoid getting a reputation. Even nicely telling people 15-20 years my senior "go spend two days refactoring this crap" was a non-starter. To be fair the code did work, I doubt a user would ever notice. But I felt bad signing off on the review all the same.
I sdhould point out that not all the old-timers are a problem. I'm currently working with some 20-year guys who are VERY up to date and open to new ideas; and the company is trying to modernize from the top-down, but some programs have taken to it better than others and some have outright resisted. Given that these programs are only staffed after a bid is won, I'm not sure what kind of vetting process could catch these kinds of inefficiencies.
But when you're building an aircraft carrier there are just too many unknowns, so you run into trouble in the very beginning when nobody wants to bid on it. Then if it looks like the overrun will be too large the contractor goes bankrupt and you end up with a half-finished ship and a gaping hole in the capability it was supposed to provide.
Likewise I'm pretty sure the average Dog Dating App startup has better equipment than we're given, although to be fair what we have does the job, just not nearly as well as it could. Not to mention the mountain of legacy equipment and code that no one ever wants to spend money to replace or upgrade properly (once again, underbidding). For every F-35 or USS Ford there are hundreds of smaller programs wither much tighter (also underbid) budgets that you never hear about (either because they're classified or just too boring for media coverage). But it has to be that way, otherwise we don't get the business at all.
Don't get me wrong I like my work and my coworkers, I'd certainly rather be where I am than Silicon Valley, but the red tape and budgetary constraints are a repeating source of frustration at all levels, and it sucks that there's not really all that much we (at least anyone remotely close to my pay grade) can do about it. At the end of the day it's up to our customers to set the bidding process and pick the winners. A realistic bid is likely a lost contract.