Because if you can check how your vote was counted, you may be coerced to check it with, say, your boss standing behind your back - so, your vote is no longer secret.
But, of course, voting by mail is even worse, and most of the US seems to not care about it a slightest bit.