The classic answer is that writers write because they have strong narcissistic tendencies.
That's why I post to forums.
http://imgs.xkcd.com/comics/duty_calls.png
Narcissism has negative connotations for many people but it's fairly natural. I'll be interested to see how many writers say they write primarily for the benefit of other people, rather than their own amusement.