I agree that Chinese elections don't matter. And you won't replace the general secretary in short notice, unlike the US President who changes every couple years. But Xi doesn't rule China alone, the CCP does. And by manipulating the reputation of CCP members you can influence who gets into positions of power and who stays irrelevant, just like in a democracy