Voter registration rolls are public records, and in many states selection of partisan affiliation is part of registering as a voter (in order to determine which ballot you received in primary elections).
And just because they are public doesn't mean it isn't a bad idea to make them easily available.