And although peer review relies on specialists volunteering their time, finding and vetting those specialists still requires work.
I'm not trying to say that the current publishing model is defensible, but I am pointing out that running a high quality peer reviewed journal still requires at least one or two dedicated workers. Whether you think they should be paid for their time or expected to volunteer is a different issue, but we shouldn't pretend that the whole apparatus is an illusion created by greedy publishers.
Also, no editor at any journal (I've published ~20 papers) made any edits to my papers.
If the editor sent some copy edits to the text, I'd just send it back to them unedited and ask them to publish it. In fact, I love pushing back against unreasonable editorial requests.
I'm confused that you aren't aware of this but, peer review and copy-editing is by-and-large done by other academics, not journal publishers, and, at most, for what amounts to an honorarium.
And online publication is not a job, per se. We automated it a long time ago. Teenages have tumblr blogs now. There is no reason why the practical aspects of online journal curation could not be handled by a very small team of people working in the IT departments of a few universities.
Journal article publication may contribute to academic careers, but that has nothing to do with the publishers' involvement: it has to do with the quality of the journal, which is driven by the academics in writing and reviewing for it.
Simply put, journal publishers are >entirely< overhead.