The democracy index does not measure democracy. It measures a weighted average of electoral process/pluralism, civil liberties, functioning of government, political participation and political culture.
A true measure of how democratic a nation is would exclude civil liberties, functioning of government and political culture.