Costco has an entire section of affiliate links to manufacturers they have worked with. The people who go there get special discounts on the products purchased from those manufacturers, and the only ads you get about it are on Costco's site reminding you that this section exists.
Websites could easily add a "shop" page to their sites and screen and curate a selection of companies willing to pay an affiliate link bonus to the site when users purchase through those links.
This would help them generate income while also not enshittifying the site or experience for users.