"I enjoy your blog. Have you ever written a children's book or any other sort of book yourself?"
I remember sitting next to a pleasant lady at a conference who asked me this question. She seemed honestly surprised to hear that editors are writers. "How could we critique writing if we didn't do it ourselves?" I asked her.
Writing is a part of editors' jobs, and sometimes that does mean writing a whole book for the publisher you work for. So, yes, I have. You won't see editors' names on most of those books, of course.
The next time you see a book with no author name on it, consider that you may be looking at the work of an editor. But not if you're shopping at Target. Those books are written by aliens.