The typical journal paper costs over $1000 to publish. If the publisher truly provided no value then the paper would still be sat in a PDF file on a laptop - that's clearly not the case. If we're talking about open access where that author pays then peer review, editing, and the publishers reach is still of value.