The idea of a democratic process presupposes an institution, which includes explicit divisions of power, which is independent of the individuals taking part.
It is still a hierarchy as someone will hold the power. It is an explicit hierarchy because those powers are enumerated. That the process of replacement is democratic is slightly besides the point (though not entirely, as it prevents all-or-nothing power acquisition).
Whereas a loose, "flat" organisation with no differentiation between the rights, responsibilities and power of members is utterly vulnerable to the first sociopath who happens upon it. Such a person will wind up with an informal dictatorship and everyone else will be stuffed.