Maybe "inherited" is a strong word, but some of the open source projects I contributed to were beautifully crafted. Django is one such example, on all fronts — docs are great, there are tests, and so on.
At work, not so much, as it's mostly very rushed, badly designed software.
That's a great question. Now that I think of it, it's the incentive structure, for the most part. One gets recognition for half-assed implementations delivered very fast.