While writing a book is not particularly profitable, the author could probably earn more by self-publishing rather than working with a publisher, since the author has done most of the marketing anyway.
I use this strategy, and I’m always amazed that people trust me enough to deliver as promised :)