It's a StackOverflow feature. The question has been asked before on Meta : http://meta.stackoverflow.com/a/17467
Question: "Can I answer my own questions, even if I knew the answer before asking?"
Answer: "Yes! There are already numerous posts that answer their own questions. There's nothing wrong with it. It's even encouraged."