That one has been on my mind since Jeremy Clucking Clarkson brought that up with Prius battery packs like 15(?) years ago.
And you eventually have to get a new/refurbished pack just like with phones. Lithium mining and processing is dirty and a global manufacturing business.
So it ain’t perfect.