While usually people use percentages in the wrong way, in this case they used and compared them the appropriate way.
Percentage here is used as a ratio of total output and a decline in that ratio over time is a decline in role. Exactly what the articles headline asserts. It doesn't matter that nuclear may have grown in absolute numbers. The assertion is that its role has declined which is true.