it is also a very easy pathway to create controlled opposition.
When you are a totalitarian dictator without elections, opposition of any kind is hard to control. With faux elections you give people a "choice" which seems reasonable compared the usual extremes in an totalitarian state.