Logical fallacy
Sunk-cost fallacy
An option is continued because time, money, or effort has already been invested and cannot be recovered. That past cost does not establish that continuing has better future benefits and costs than stopping.
Examples
We already bought tickets and cannot get a refund. Even though we would enjoy staying home more and gain nothing from attending, we should go because we paid.
We spent three years building the obsolete tool. We should spend more to keep it alive solely because those years are gone.