What happend to democracy today.. Why use so much violence as they did in Catalan? Isn’t democracy connected with a “i can vote” on my opinion?

I know that many other “democracies” have similar issues but to use this force to not let people use their right to vote is just scary and wrong. I’m not taking any side on the matter if Catalan should be independent or not. My concern is why use violence. Ugly stoneage thinking what’s going here.

My thoughts goes out to the wounded people.