It's not uncommon for a dealer to buy a vehicle at auction without getting the title at the time of the auction purchase, floor it, then sell it with outside financing before the title is even in hand.
So the title essentially jumps from the auction seller to the outside finance company of the end buyer at some point after the time of the sale. The dealer never actually spends any money out of pocket for the vehicle, since it was floor planned.
Having a car last on your lot longer than the floor plan term usually means that it was a bad fit for your customer base (like stocking luxury cars in farm country) or you don't have good salesmen. Almost all sales are finalized before the floor plan term is up, so there is no out of pocket cost to the dealer up front.
Dealers can return vehicles to the auction in some cases (for a fee), but usually that's only in the case of the auction itself being misleading (not disclosing prior major repair, salvage title status, or things like that).