Hyperscalers buy so many CPUs and so much RAM they can dictate prices (to a point) or at least make an agreement to buy at a much lower price but buy X amount for the next 5 years.
Maybe if they're locking in long enough to fund new fab construction? But in that case after a few years a ton of capacity will come online so they're actually helping solve the problem.