A lesson many developers have to learn is that code quality / purity of engineering is not a thing that really moves the needle for 90% of companies.
Having the most well tested backend and beautiful frontend that works across all browsers and devices and not just on the main 3 browsers your customers use isn't paying the bills.