Lots of household appliances are similar to this too. If you have to repair one of the main parts of a washing machine or a dishwasher a new one will be a cheaper option.
Same for a car, a friend of mine flooded his engine by driving through water that was higher than expected. His insurance company just wrote the car off as it was much more expensive to replace an engine than to get a new car.