The difference between milk and a car is that the price you're paying for milk is clear from the get go. You don't have to waste an entire saturday going back and forth with some sleezebag trying to wear eachother down. Person A goes in and buys a car for 1K under MSRP and feels ok. Person B goes in, educated, and pays $5000 under MSRP. If dealers and the industry itself weren't so dishonest, everyone would be able to get Person B's deal. But they size you up, figure out if you're dumb enough to play their 4 square game and then wear you down with psy-ops and time.
There are exceptions to every rule, but honest dealerships are few and far between, in my experience. And even if you get a good deal on the purchase price, the second the finance manager offers you a tire and wheels package, gap insurance, extended warranty, simoniz, or god-forbid "anti theft VIN window etching


" you can rest assured he's desperately trying to fuck you. Many states have capped "doc fees" which is just an admin fee for them doing the dmv crap for you at $60-$100...some states have no cap and dealers will charge a "doc fee" of $500 or more, even up to a thousand dollars.
When many states caped these fees, many dealers started creating new "e-file admin fees" or some such other BS fake fee for several hundred bucks. Hey, it's not a "doc fee" so we can do it....Many also charge a dealer prep and delivery fee which again is 100% fake profit. There's already a "delivery charge" right there on the window sticker, which IS legit. There is no prep to a new car other than peeling off some plastic and gassing it up. It gets unloaded from the truck with all fluids other than fuel...That "courtesy" tank of gas they "gave" you was paid for, by you, in the form of a dealer prep fee...then they kept a couple hundred extra bucks for themselves after filling it up. All those add-ons and fees are essentially worthless (especially the extended warranties) and pure profit for the dealership.
I disagree with your claim "at involce they're losing money". A dealer's true cost is lower than invoice, rest assured.
They also still have their holdback which is pure profit. Certainly overhead eats into that a bit too but no dealer is really selling a car at a realized loss. They may sell a car at a "paper loss" if that one extra sale will push them over a threshold for a big factory bonus. Selling at a paper loss is also likely if they have a bunch of BS fees on the deal sheet too. I read that most dealers make about $2K profit per car, most of which is, as you said, not from the actual sale price but because idiots will buy dumb packages in the finance office. Bonus points if they can trick you into pre-paying for a preferred service package so you can get a small discount on their wildly overpriced oil changes rather than just go to a Valvoline drive thru for $60 or DIY for ~ $40. When I ink a car deal I get right to a number I'm ready to pull the trigger on and then just sit there "thinking". I wait for the sales guy to say "ok I mean will you buy this car today at this price, we really can't do better"...I say, "you have a deal.....if you throw in "x" free oil changes". After my first 2 or 3 free oil changes I never go back to the dealer for service.
My brother in law used to sell Benz's to rich kids at MIT back in MA. These 20 something year old sons of Chinese billionaires would come in and pay full sticker for an S Class or G Wagon or AMG this or that, cash, just to have the most expensive Benz in Cambridge to show off with. Certainly the dealership made 5-10K pure profit in such cases on a single sale. In SoCal, market value adjustments are very common, and people actually pay them. If a dealer sells ANY car at MSRP he's making a really nice profit. If he sells if for $5K OVER sticker, he's robbing you.
My friend bought a $90 MB SUV last year via Costco and got $10K off the sticker immediately just from using Costco. He told me he got another $5K off the car at the dealership. He's a shrewd negotiator. Even at $15K off sticker, there's no way the dealer lost money selling him that car.
I agree the margin on a car isn't huge, but it CAN be. MSRP on my Ducati was 23K. I almost inked a deal for 1000 under. Then I had another dealer beat that by another $1500. No kidding. Now tell me if I had bought from the first dealer that the wouldn't have made a fairly ridiculous profit. $1000 PLUS the diff between that and his actual cost of the bike which I'd bet is like 19K, if that. Point is, dealers net price is much lower than "invoice" with hold back and incentives, BUT yes they make most of their money in finance with kickbacks on rates AND selling suckers tire and wheel packages, gap insurance and extended warranties. I made the mistake of buying GAP insurance once at the dealer for $500. When I called GEICO while awaiting delivery they said "you didn't buy gap insurance at the dealer did you? Bc we can sell it to you for a couple bucks a month." I called the number on my dealer gap policy and cancelled it getting a pro-rated refund.
BTW that 2nd Ducati dealership gave me that rock bottom price on the very first email exchange with 0 haggling. He was Carlin Dunn, the legendary Ducati racer that passed away last year on Pike's Peak. His family owns a small dealership in Santa Barbara and the guy was an absolutely awesome human being. He cared more about getting more riders on bikes than lining his pockets (plus he probably made a shit ton of money thru sponsorships and shit).
Bottom line from my perspective, I find dealers to be almost universally dishonest because if they're not screwing you on price, they're screwing you on your trade, and if they didn't get you on those 2 they put on a very high pressure sales pitch in the finance office to buy complete fluff nonsense packages to roll into your loan, none of which add a dime of value to your car but instead immediately reduce your equity...."for your protection" of course.