Russia and China were already democracies before the authoritarian parties took over. They could have peacefully taken control in elections if they were able to convince the voters. But instead they disbanded the legislatures and stopped having elections.
Russia was not[0]. One of the key reasons that laid foundations for revolution there was wide discontent of nobles and their arrogance towards common people.
https://en.wikipedia.org/wiki/Russian_Constituent_Assembly_e...
The authoritarians (bolsheviks) didn't like the results (thought the people weren't conscious enough yet to be trusted to be democratic) and disbanded the democratic assembly. Instead they used their own assembly made of up representatives indirectly elected via small local groups where they controlled the voting by force. Which caused a civil war in which the authoritarians won.
The authoritarians were just more organized and better at violence.