Let's put it this way. If you are part of a small democracy in which you have an equal vote with 10 other people, and 9 of them vote against you to take your stuff, that doesn't make it any less theft because the process was democratic. This principle doesn't change because we're dealing with larger numbers. It's still the majority voting to take the property away from the minority.