You would thank someone because they did something nice for you.