Inflation outside expectations

Why are short term bond yields more volatile when inflation is within expectations and long term bond yields more volatile when inflation is outside expectations?