Obviously, because you're looking at installed peak capacity, not actual power generation. Here you can see that coal is indeed being used less and less: https://energy-charts.de/energy_de.htm?source=all-sources&pe...