An ICE replacement is usually just a few thousand dollars. And that's the worse case scenario. Well maintained ICE cars can last for decades. A mandatory, $10-20k battery replacement for every BEV at some point in its lifetime is a big problem.
Consumeraffairs review of battery pack replacement costs (https://www.consumeraffairs.com/automotive/ev-battery-replac...) implies that this costs $13k-$17k, so much more than engine replacements for old cars, as long as we're talking about battery packs which have appropriate capacity for full EV, not a hybrid or simply putting in a much smaller capacity than originally installed.