Line items are historical data. When an order is created all the information is copied into the line item.
While the product variant exists, the line item will point to that variant_id. Though when the variant is destroyed all line_items get their variant_id nullified. The information is still valid, they just no longer point to the item that was being sold.
It's like discontinuing a product line. The sales of that product are still valid.