Really, hmm.
You lived in a different era I do not know. lol
Everybody knows who everyone voted for, its rather easy to figure out/if you go to a primary you have to state your party of choice. Then that party knows about you and calls you for the rest of your life.
Voting wasn't always done by secret ballot. Usually it was going to a hall, someone would call your name and you'd state who you were voting for (back 125+ years ago or more). Like a caucus.