Publishers manage a whole lot of tasks, notably the editing (up to and often including picking the book's title) and the design. Most important, though, is managing the marketing and sales. They get books into stores, they get interviews for the author, they get the book reviewed on websites, etc. For e-books, they're primarily a marketing firm. Whether that's worth the author giving half of their revenue to the publisher is another issue.