Notation wise, Hydrogens attached to Carbons aren't seen as significant, the only exception to this is when naming fluorinated(C-F) compounds.
With this in mind, the number of Carbons in a Chain is seen as signifigant, in both examples there are seven carbons attached to one another, thus the basis of the nomenclature (hept-)
Nomenclature is a naming system.