Why would a publisher print the book if they can't make any money on it. The author makes profit from the sales of the book, the publisher gets part of that for their work. The publisher prints, distributes, and advertises the book. They need to get money to cover the expenses and make a profit for that work.