Discontinued products, old marketing links still circulating, and typos in URLs people type directly all funnel into 404s — checking Search Console's crawl errors report regularly surfaces exactly how much traffic is hitting dead ends.
For discontinued products with real remaining search demand, a 301 redirect to the closest live replacement or category page recovers that traffic instead of losing it entirely — this is the single highest-leverage fix on most stores' 404 lists.
Search bar, links to top categories, and maybe a discount nudge turn a dead end into a recovery opportunity instead of a bounce — treat it as a real page in the funnel, not an afterthought nobody's supposed to see.