The "subpanel" that has a metal enclosure, that is, the panel box is made of metal, has to be bonded to the Equipment Grounding Conductor (EGC), of which there are many types.
Very possibly, the more, if not most, confusing type of residential dwelling EGC will be a metal conduit feeder, containing only two hots and a neutral, that brings power from the main panel to the subpanel. The metal conduit is the equivalent of a bare copper wire EGC. The connection of the metal conduit to the subpanel metal enclosure establishes the EGC.
Mechanically securing a terminal bar (as you say, the ground bus bar) to the subpanel metal enclosure provides terminals to "land" the branch circuit ground wires, whether green, bare or other color (except white or gray). The ground terminal bar is usually available in a bag with mounting screws and labels. The mounting screws do not have to be any particular color, they may be green, but that is actually unusual.
Now, a different path for the EGC happens when the subpanel gets its power from the main panel through a four-wire feeder Cable, two hots, a neutral and a "ground" wire. The ground wire has to land in a terminal made for wire-type grounds, so, the feeder cable ground "lands" under one of the terminal screws of the "ground bus bar". Mounting the "ground bus bar" to the subpanel box with its mounting screws (of any color) then, in fact, "bonds" the feeder cable EGC to the subpanel metal box.