Men wearing hats walk on the street.
The men are construction workers.
Men wearing hats on the street does not necessarily mean they are construction workers.
Construction workers wear safety hats
Wearing hats doesn't imply being construction workers.