The themes are similar because people die in both stories. In The Lottery and the Tell Tale Heart the villagers and the old man die. The villagers die if there is a black dot on their piece paper in The Lottery. The old man died because of his hideous eye.
The themes are different because of how the characters die. Throughout the story the villagers are stoned to death. In the end the old man is stabbed in the tell tale heart. The black box tells which villagers die. The old man's tells how he dies in the tell tale heart.
Similar craft moves are symbolism in both