I presume that in a few years electric cars will result in significant job losses amongst those who produce internal combustion engines. Renewable energy will reduce the number of employed coal miners.
I agree that this should be a role for government to assist people in a changing world.