You would thank someone because you are grateful to them.