Writers are people too! They have to survive, generally with a second or third job! There are hundreds of thousands of writers that have paid "vanity presses" to publish their books for just that, Vanity!
Professors in colleges know that their tenure depends upon the old saying "Publish or perish"!
Money is always a goal, but not an end in itself for most writers!