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.
I agree that a loose "flat" organization is prone to serious problems :)
It's the lack of an active vision that creates problems not the hierarchical or flat structure of the organization.
For example a democratic process can be used to maintain an organizations active vision including resolving disruptive people and processes.