There is lag created by sunk capital costs. Coal is still producing considerable electric power in the US, but the last time a new coal-fired power plant came online was more than a decade ago, and there are none under construction (although Trump was trying to get one built, to considerable skepticism and inertia). The average age of a coal-fired power plant in the US is 40+ years.