Most people who vote for either party are moderates. The debate is framed by the extremists.
Quite so... I've heard it said that you need to be an extremist to win the Primary, a moderate to win the General.
You need to be in the extreme wing of your respective party to draw out the party base in order to win the nomination, which results in the least-electible candidate winning each party's primary vote. It takes a moderate to draw out independents and swinging voters to vote during the general election - precisely the person who typically doesn't win the primary... the irony of it all...