It comes down to pragmatism, not ideology.
Consider you have to 2 groups, A and B, and a set of issues. Each issue has different importance to me and each group has a generally opposing stance on each issue.
One group may have a stance on a subset of issues I generally prefer but more importantly the other group could have a stance on issues that terrify me. Their stance would lead to negative outcomes much worse than negative outcomes from the other group. It could even be that I disagree with many of the stances of the group I vote for but I’m not terrified of the outcomes associated with those stances.
So it is therefore more important to win to stop the opposition group from producing undesirable outcomes.