I suppose every election they could randomly distribute voter ids that are unique to that election? Ie, pull an I'd from a hat at the polling station then use it and keep it for verification?
Because now you can prove to anybody which way you voted, opening yourself to blackmail, bribery, or duress. The secrecy of the vote is crucial to its integrity.
Maybe you could move things down the chain: make it illegal for any entity (with perhaps some exceptions for anonymity compliant polling) to ask for voting proof, with very significant felony punishments (large organizational fines, jailtime for individuals).
You may not want to sell your vote, but others will. And the mere suspicion that other people can sell their votes erodes trust in the system, making it useless for a democracy.