They in turn sell it, where one of two things happens.
* It is parted out for spares for other cars.
* Someone actually repairs and resells it. This is one of the things you have to look out for when buying a used car. It may not be difficult to repair it cosmetically, but crumple zones are one use only.