Well, you answered your own questions, many towns with population lesser than 50 000.
Where do you live? O.o My village in Poland, population 1000, has a stone quarry (complete with industrial machinery) and machine shops. Nowy Sacz, population 80 000, lies nearby. Maybe I shouldn't explain...