Debt becomes more attractive when inflation is high. If, hypothetically, $1 yesterday is worth 80¢ today (inflation), then you just saved having to pay back 20¢ on every dollar of the principal. That is one hell of a steal! As such, rates rise to compensate. If higher interest rates now require you to pay 20¢ more for every dollar then that debt is not so attractive again. This keeps the supply and demand in equilibrium.
But since higher rates are specifically what is driving inflation (we are in the target range if you exclude mortgage interest costs), the higher the rates, the higher inflation goes. With that, the equilibrium is struggling to be found.