Those copy editors, graphic designers and publicists work as a team to create and promote the book and they get paid in in cash, with royalties or with some combination of both.
FORBES: Atari Founder Says His New Steve Jobs Book Will Be Published On A Novel Publishing Platform