The word “democracy” comes from ancient Greece, most famously Athens - the term was coined to refer to Cleisthenes‘ reforms in the 5th century BCE - prior to that point only upper class men could vote, the “democratic” reforms extended voting rights to all male citizens who had completed their military training - so excluding women, slaves, freed slaves, resident foreigners, and men who hadn’t completed military training (which normally started around 18 and went for two years) - so only 10% to 20% of the population could vote, although that was still a lot more than prior to the reforms-before the reforms, power was limited to the top 1% or so of men, who came from the wealthiest families
So your idea that democracy requires equality is completely ignoring the actual history of the word.