Their most profitable business by margin is “advertising” (or sponsored/enshittified search results), and seller fees (which are typically 40-50% of item cost) are a massive profit center too.
They mostly stopped selling loss makers (like heavy liquid beverages) or hiked the prices on them (like after they drove Diapers.com out of business) years ago.