Some people like the puzzle/challenge aspect as well. Plus somebody asking something you know the answer to reinforces that your decision to retain that information has value.
I'm a librarian. We answer a lot of questions.
And sometimes you don't know the answer to the question before you start writing, but in the process you learn something new.