It's not just reducing the amount of the product, a lot of products also reformulate to make things cheaper to produce while keeping the price to the consumer the same.
https://www.theguardian.com/money/2023/oct/21/shrinkflation-...
https://www.theguardian.com/money/2023/oct/21/shrinkflation-...