Apple spent two decades building a reputation for squeezing suppliers on price, so a multi-year commitment like this one says the current chip shortage is a problem Apple cannot negotiate its way out of. This is a big shift for Apple, but it makes a huge amount of financial and strategic sense. The chip market is a mess right now, so Apple is doing its best to shore up components for its own products.
But they are locking in volume, not necessarily the price (because who knows how the price will move). Volume is probably the most important number as they try to forecast what kind of demand their products will have, especially with new launches.
Predictable volumes and locking them in may help keep Apple products at or near current prices for consumers. It will take us a while to get out of this supply crunch, and I expect tech prices to keep creeping up, with companies finding ways to add “surcharges” (e.g., subscriptions) along the way.