For an extreme example, the Democratic People's Republic of Korea (commonly known as North Korea) also has elections, but everyone with a brain knows they're a sham.
Or the Deutsche "Demokratische" Republik. Mock elections seem to be a staple of many dictatorships. Not sure why, it's not like they're fooling anyone either domestically or internationally.
That's because China is a meritocracy. Everybody has to work their way up from the very bottom in order to prove their worth - even people with connections will fail if they can't prove their worth. And so you don't end up with random dudes with no qualification whatsoever trying to run for important seats.