But not all Terry stops are traffic stops. The case you're citing wasn't a traffic stop.
The Terry ruling establishes a test that applies to all Terry stops, not just some.
And: https://en.wikipedia.org/wiki/Stop_and_identify_statutes
> As of April 2008, 23 other states had similar laws. Additional states (including Arizona, Texas, South Dakota and Oregon) have such laws just for motorists, which penalize the failure to present a driver license during a traffic stop.
The Terry ruling establishes a test that applies to all Terry stops, not just some.
And: https://en.wikipedia.org/wiki/Stop_and_identify_statutes
> As of April 2008, 23 other states had similar laws. Additional states (including Arizona, Texas, South Dakota and Oregon) have such laws just for motorists, which penalize the failure to present a driver license during a traffic stop.