An “old energy production source” can be cheaper now because the environmental damage it causes is an unpriced externality. A carbon tax solves that by giving a price to that environmental damage. Suddenly, fossil fuels only make sense in the rare cases where renewables cannot be used.