For example, in Nazi Germany and Communist countries, when other parties were banned, why was the concept of the central party still important? Wouldn't it have been the goal to get rid of the concept of political parties in order to legitimize that party's ideology as natural and the only game in town?
Like when the Nazis banned the opposition, why did the Nazi Party continue to function and have a concept of membership distinct from the notion of German citizenship, instead of being integrated into the government?
Or in the Soviet Union or China or North Korea, where the leader was/is the Chairman of the Communist Party; why even bother having a "party" when the state and government are literally custom built around that party's ideology? Why does this seem to be so common?
The Korean Worker's Party (WPK) and its opposition parties in North Korea (DPRK) serves a number of functions. What those functions are boils down to the illusion of choice and a guise of legitimacy.
While I can't speak about similar governments to the same level, the main facet of sustaining authoritarian governments or cults of personalities is control: They keep us safe with these rules, they feed and clothe us in exchange for our love, the best life we've ever lived was serving them.
"Without you, there would be no us! Without you, there would be no motherland!"
Edit: a word
Weren't there African states that were officially party-less? (I can't remember enough of a book I read a few years ago to even hint at a start, except that I think it got at least a little buzz and dealt with sputtering states and evolutions of political power.)