A battery pack for a Model 3 is $10K. So even if the whole car is only worth $20K, it's still worth keeping on the road.
The Porsche Taycan battery pack is $70K. The moment you have any issue at all with it, the car will be considered totaled.
Shipping from China to the west coast runs an additional $30/kWh due to the weight of the cells and volume of the box (shipped in several boxes to reduce cost). So you can have a 300 lbs, 15 kWh 48V battery shipped to your door for about $120/kWh).
High voltage EV batteries need additional components (like HV contractors) due to stacking so many cells in series, but it seems entirely plausible that Tesla's economies of scale allow them to offer a 75 kWh battery for $10k (~$133/kWh) plus installation.