Republican U.S. Senate candidate Dan Sullivan is seen through balloons as he takes part in a television interview on election night, Tuesday, Nov. 4, 2014, in Anchorage Alaska. (AP Photo/Ted S. Warren)

A funny thing happened in five states on election night. In Alaska, Arkansas, Nebraska, North Dakota and South Dakota, a majority of voters surveyed their choices of candidates and ballot initiatives, and chose a Republican candidate along with a liberal position on a ballot initiative.

Alaska elected a Republican senator and passed a recreational marijuana initiative, along with an increase in the minimum wage. North Dakota elected a Republican congressman and rejected a Personhood amendment. Arkansas, Nebraska, and South Dakota elected a Republican senator and governor, and passed a minimum wage increase.  This led Zachary Goldfarb to write: “Americans will vote for Republicans even though they disagree with them on everything.”

My research suggests a key reason why this happened: our partisan identities motivate us far more powerfully than our views about issues. Although voters may insist in the importance of their values and ideologies, they actually care less about policy and more that their team wins.

This “team spirit” is increasingly powerful because our party identities line up with other powerful identities, such as religion and race. Over the last few decades, Republicans have generally grown increasingly white and churchgoing, while Democrats have become more non-white and secular. This sorting of identities makes us care even more about winning, and less about what our government actually gets done.

This helps explain why all of the five states noted above voted for liberal policies even though they have substantial proportions of white churchgoing Republicans. Indeed, Nebraska, North Dakota and South Dakota have some of the highest percentages of white churchgoing Republicans of any state.

When social and partisan identities align, we begin to detach our votes for candidates from our policy interests. The most important thing is to stick with the team. It doesn’t matter if the team you voted for opposes the very policy you voted to enact.