There's no point in voting in a primary if that party is going to lose in the general election anyway. It guarantees that your vote doesn't have any effect.
This is an exception to the general rule that the smaller number of people voting in an election, the larger impact proportionally your vote will have.