Men wearing hats walk on the street.
The men are walking inside the school.
There wouldn't be a street inside the school.
On the street is different from inside the school.
A street is found outside, not inside the school.