A major bug that you don't detect until after you launch your product is much more costly than one found during development. First, it negatively impacts customers. Second, it is usually more time consuming for the team to figure out the root cause of production bugs and fix them because they are no longer actively working on that code. Third, because the defect is live, the customer pain persists until the bug is fixed and you deploy the new code to customers.