Why? It's mainly so people of that party are the ones choosing the candidates for that party. Without closed the other side purposely tries to sabotage the otherside by voting for the worst candidate.
My experience with primaries is only the most dedicated vote in them. For example in Nevada you have to sit in rooms in schools and listen to every nut that wants to give a ten minute speech to change your vote.