Voters switch parties for a variety of reasons. The numbers of changes in party registration tend to increase before a primary election, since Pennsylvania has Democratic and Republican “closed primaries” in which voters can cast ballots only for their party’s candidates.