You would write a letter because you want to thank someone.