It certainly could have, but the software industry optimized around speed and cost, and not around correctness. There was a hiring fervor for programmers with no formal training, and a complete lack of concern for anything but the bottom line. and now the chickens are coming home to roost.