It actively harmed the environment. Once the thing has been manufactured doing anything less than driving it into the ground is wasting the upfront environmental cost.
Obviously, that’s average many cars are significantly worse. Run the numbers and swapping a high mileage but poor fuel economy car for a hybrid/EV and the payback can be a net positive.