They do this for their own reasons but it's helping them in this crisis. They can simply accept lower margins in the short term, in the knowledge that in the long term these price fluctuations even out.
From the perspective of the producers Apple are a consistent purchaser with deep pockets. AI companies may be willing to pay more for RAM in the short term, but Apple is a safer customer. The current AI bubble may or may not burst, but people will keep buying iPhones regardless. The producers do not want to freeze Apple out because Apple is their hedge against the bubble bursting.
Lenovo may not be a low volume purchaser but they are not at Apple's scale nor are Lenovo's customers willing to pay the premium that Apple's customers are.