Most authors don't know how to nor want to self-publish their books. Publishers also have extensive back catalogs. So even if a distributor (like amazon) started to provide the same services, they would have to compete with the publishers as they, as a distributer, would need the publishers back catalogs.