“I would simply lie about my vote.”
If it’s not secret balloting someone can watch how you vote or force you to vote a certain way.
Secret balloting can be made less convenient by having more polling places, even putting them into vehicles that can circulate through neighborhoods.
They don’t allow cameras in polling places for that very reason.