The current, hostile, political climate is leading some to speculate that party polarization is reaching news heights. In a response, this blogger does a great job of articulating the conflicting strategies used in primary vs. general elections.
Primary elections pull candidates to the extremes, general elections pull them back to the middle. That's the overall logic, how it plays out in a particular election is impossible to predict ahead of time.