How smart he is, and that for Tim, it's about Robin first. Well, technically it's about Dick first. After all, he recognized Robin because he remembered Dick, and from that point working out who was Batman was relatively easy.
Tim had the advantage over most people in the DCU; he was a child at the time.