Worse is worse
It seems to me that the dirtiness visible in many successful technologies is more like an artifact of their success rather than any kind of causal factor. The technology had features that meant it was fit for some purpose in the particular environment in a particular period in time. The desirability of achieving that purpose outweighed any other considerations, any faults were carried along as an appendix. The technology thrived despite the failings.