Right. Editors provide a valuable service, but there's no reason that needs to be bundled with the other "services" provided by publishers, most of which have become or are becoming irrelevant, particularly, IMO, the functions of providing capital and risk pooling. A traditional publisher would provide an author with a (usually small) advance on royalties to live on while writing the book (think of it as a payday loan in terms of financial soundness and you'll have the right idea there), front the money to print and distribute the book (a significant amount when you're talking paper), and assume the risk that the book would tank or that the author would flake out and not finish the book. They could do that because they'd pool the risk across a large number of books. If the editorial decisions about what to publish were sound overall, the publisher could make a profit despite losing money on individual books.
The cost of "printing" and distribution is headed toward zero and editing, cover art, and services can be purchased. That basically leaves (from the author's perspective) "source of short-term loans under very bad terms" as the only remaining function, but, you know, there are other places that provide those. :-)