Why write-off categories exist
When an insurer decides a damaged car costs more to repair than it is worth, they pay the owner the market value and the car becomes the insurer's property. The insurer then assigns a category from A to N based on what kind of damage was involved. The category is recorded against the car's registration on the Motor Insurance Anti-Fraud and Theft Register (MIAFTR) and follows the car forever, even after repair.
The UK system was updated in October 2017. Cars written off before then still carry the old letters (A, B, C, D). Newer write-offs use A, B, S, N. The change was driven by rising repair costs (especially for modern aluminium and composite bodies) which meant many lightly damaged cars were being written off purely on cost.