I pickup beer and taco money occasionally driving a towtruck for a buddy who has a contract moving vehicles to/from Copart.
The yard I deal with has insurance inspection areas for a couple of insurance companies. If the ins co thinks it'll likely be totaled, they hire Copart to arrange moving it to the yard. Copart farms that out to a tow co. There they do a pretty thorough inspection.
Bent frames or unibodies or blown airbags very often results in the ins co paying off the owner and handing it off to Copart to sell.
Copart also accepts charity donation vehicles, and they also just buy vehicles if the price is right.
So it might have been an insurance write-off or it might not.