Sometimes letters are written as part of a class exercise. The child may thank you for a photo when you didn't send one because a suggestion on the blackboard mentioned thanking for a photo (if one had been received).