It wasn’t even an electric car battery. It was a regular car battery. Most car batteries are AGM or lead acid. This one was a lithium battery. It actually should have been fine but most lithium batteries have some sort of circuitry between them and the charging system.
Lithium protection circuits only work when paired with chargers designed for lithium batteries. You can't use a standard lead-acid charger because the charge profiles are different.
Lithium chargers will charge the first 90% at high rates. The remaining 10% of the charge needs to be done at low rates. Lead-acid battery chargers are constant-rate chargers. They don't monitor battery charge state as do lithium chargers.
None of my ten or so battery chargers have a setting for a lithium iron battery,