Who are we to decide books made for profit are not good? In fact many of my favorite books were clearly made in an attempt to trade my money for enjoyment, and were better because of that since they were made with the readers satisfaction as a goal.
Plus there are plenty of people who do it for the art even if they get paid, but the payment makes themselves better off and allows them to continue their work.
Like capitalism allows many authors to be able to create their intended art and find an audience, with both artistry and the desire to make money. And it's not like writing a book is easy, so the money is also extra motivation.