The modern petty officer dates back to the Age of Sail.
Two of the petty officer's rates, midshipman and master's mate, were a superior petty officer with a more general authority, but they remained no more than ratings.