You would thank someone because they did something you asked them to.