Democracy itself is certainly not the best decision making process, but it tends to avoid some radical pitfalls of oligarchic and tyrannic processes.
A small group of people with absolute authority to decide who does and doesn't get to live in a building can be more tyrannical than a large group of people forced to compete on just price. (And vice versa.)
[1] https://en.wikipedia.org/wiki/Selectorate_theory