It doesn't. It has very little to do with it.
Democracy doesn't equate to freedom. There is no inherent right that the 51% has over the 49%, and indeed, as Jesus said, the majority is evil (Matthew 7), and thus, when evil holds the majority in a democracy, they hold power over the, generally...