If pensions were funded by actual retirement accounts, where employees invested money into some state fund and have it paid out for retirement this would be entirely unproblematic.
But the pension system in many EU countries is set up in a way in which tax contributions now finance pensions now. This can only work with a steadily growing economy which continually generates more revenue when more people retire. In some sense it is a literal Pyramid scheme, in which the obligations are continually pushed to younger generations, which have to contribute based on how many pensioners there are.
Especially now as EU economies become weaker this issue becomes bigger and bigger.