It's strange that this is so prevalent in the industry. Who ever got promoted for fixing all the hard bugs? Reinventing the wheel is the safe career move in many companies. And the result are huge R&D budgets, bugs and a bad user experience.
Rarely are those potential reasons actually weighted up against the full cost of the rewrite