You would thank someone because you want to let them know you appreciate what they have done.