Inflation is either expected or unexpected.
- unexpected inflation causes hyperinflation
- expected inflation is priced into the rates offered
The burden of inflation - who actually pays for it - falls on whoever needs the deal more. Lenders can invest anywhere, but borrowers need that money here and now. We're paying for most of the inflation as higher interest rates.