If that were true there would be no new writers, because nobody paid them to write their first book. In fact, most first books don't sell at all. And yet... people write.
Not everyone is 100% motivated by money. And those that are do not all need full time employment doing that work. And those that need money and employment can often generate revenue with complementary goods. And those that can't can source subscription and other revenue sources.
The idea that the current model of commercialization of writing is the only one that has ever or could ever work is really narrow thinking. Writing has two main values: 1) the ideas, and 2) the expression. Both of those have put food on the table for good writers forever, and will continue to do so. The AI panic is just from people who can't imagine the world being any different than it is at this very instant.