Political parties often use a primary in order to avoid splitting their party vote in a general election. For example, if 60% of the voters are Republican, and 40% Democrat, but two Republicans run for the same office and each get 30% of the vote, the Democrat would win with 40%, since that is the most votes, even if 60% of voters least preferred the Democrat.