Believe me, you don't have to make quality software to win a major government software development contract.
In fact it will be impossible to deliver profitably if you do. Government contracting is about complying with the letter of whatever silly specification you've been given, while being the low bid. (I don't think this is good behavior, just the only viable one). Governments let the perception of fairness and frugality ensure that neither is achieved and that they only get crap.