A classic response to this is "Did anybody consider the economic impact on ferriers when the demand for horses goes down?"
And yeah, there are people projecting such impacts, but overall it's usually considered valuable to innovate. Some jobs will inevitably be left behind as older tech becomes obsolete. There's been a few different ideas on how to solve this problem, but none of them are perfect.
The money-making part of a gas station for most of the last century has almost always been the convenience store, not the gas pumps. People will still need restroom breaks and quick snacks in an electric car present/future.
And yeah, there are people projecting such impacts, but overall it's usually considered valuable to innovate. Some jobs will inevitably be left behind as older tech becomes obsolete. There's been a few different ideas on how to solve this problem, but none of them are perfect.