The gorget (from Fr. gorge=throat) was not merely an ornament, it was a badge of rank. Only officers wore a gorget in 18th century armies.
Of course, as mentioned it is descended from the Medieval gorget, plate armor for the throat.
The Wikipedia article on the item is very good.