http://wardsauto.com/industry-voices/answers-faqs-about-why-...
Manufacturer, in theory, could pull out and close down the shops during financial downturns (which with US companies seems to happen every few years), leaving a bunch of owners stranded on service and spare parts (in pre-Internet days). A local dealer would be financially independent from the manufacturer, and provide needed liquidity for the car maker, the theory goes.
Selling an automobile based on a list price offers less potential for profit than all of the other things that dealerships do. They find numerous ways to milk customers out of money during a sale by jacking up the price of the car or shafting people on trade-in value. Aside from that there's financing and dealership servicing, both of which can come show high profit margins.