Well, it's because the AI's core uses the card preview functionality (which is disabled for player in hidden cards mode). Obviously, we can't disable that for AI because it wouldn't work. So, yeah the AI does little cheating to compensate for lack a human brain ;-)