When you vote in a primary you aren't really voting for a candidate; you're voting for a delegate who promises to vote for the candidate for you.