You would thank someone because you want to express thanks.