Do you have perks in Heavy Armor smithing? Or in Light Armor, for that matter? If you take armor perks, the armor rating takes those into account when the item is being shown on the inventory screen. So for example if you have the perk that gives you an armor bonus for a matching set, and you're wearing a matching set of Leather Armor, but you look at a piece of Studded Leather or Elven armor, even though those are higher level armors, they could have a lower armor rating than your Leather Armor, due to the perks. Likewise if you compare light armor to heavy armor, but you only have perks in light armor, it's possible for the light armor rating to be higher than the heavy armor's rating, even if it wouldn't be if taken at base value.