Non-citizens can vote, sometimes. I’m an Irish citizen, but if I moved to the UK, I could vote in mostelections there.
Edit: also, obviously, not all citizens can vote. Children can’t, historically women couldn’t, some countries used to have racial and/or economic qualifications, and some countries still don’t allow people who’ve committed crimes to vote.