Not always true - many cars are totaled now for far less damage
Repairs are expensive but the market for damaged cars gives insurance companies and easier out than trying to make a customer happy with the repaired car. Other factors are distance to a repair shop and other costs like rental cars. It all adds up.