Not only for the courtesy, but also to stay in the interviewer’s head if they were undecided. Most people don’t send these, thus, you’ll be a bit unique and might tip things in your favor.
An interviewer that uses it as a hiring requirement probably wants someone thoughtful and willing to do a little extra compared to others. Seems minor compared to multi hour programming tests.