The used-car side of new-car franchised dealerships: fed by trade-ins, lease returns, and auction buys, they sell the newest and most certified used cars, wholesale the rest, and often earn as much gross from used as from new.
Dealership used car departments are one player in the used cars industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how dealership used car departments fit into used cars