Earlier quoted context omitted.
They calculated that. Building a second JWST would have added 10% to the budget, but the budget committee nixed that. YOLO (you only launch once).
The JWST only has a planned mission duration of 10 years. If it’s as epic as everyone claims it could be, there must be a follow up mission planned. So even if it fails, we’ll still see a successor at some point.
https://www.universetoday.com/139461/what-comes-after-james-...
The write up goes into detail on how missions are planned, and what is in line to follow JWST.