Also, mortgages have a duration (a calculation of the time it takes to get paid back) that is a variable, hypothetical duration that varies with prepayment speeds, so a short duration mortgage portfolio is not protection against a sudden increase in interest rates, because if interest rates rise the duration will rise which hurts the value of the bond.
Shortening the duration of your bond portfolio means you receive cash sooner than longer duration bonds and therefore you can reinvest that cash sooner at higher interest rates in an inflationary environment.