The unit rank is a cosmetic rating. It is found in the information panel when selecting a unit.
In StarCraft, terran units have ranks. Heroes have higher ranks than their base unit. Certain units like civilians do not have ranks, and a few heroes like Jim Raynor can have non-standard ranks (Raynor is labelled "marshal", for instance, a law enforcement rank rather than a military rank).