They both had a horrible childhood, were manipulated by Albus, and had the weight of the world on their shoulders. Tom and Harry both just wanted to save the one thing they truly cared about, though for each of them it’s different.