When inflation is higher than was expected, the real interest rate is lower than expected. For example, suppose the nominal interest rate is 7% and people expect inflation to be 4%, then the market has an expected real interest rate of 3%. If inflation turns out to be 5%, the real interest rate is 7% minus 5% equals 2%, which is less than the 3% that was expected.