I am brazillian, and the reason we have those sidewalk copy shops is that a large amount of government bureaucracy (and we have a huge amount of these, according to the "ease to do business" there was years where we had the dubious honor of having most bureaucracy of all countries in the world) has paper copies of documents mandatory many government offices do not make copies for you but will happily tell you the nearby shops with Xerox machines (literally, here Xerox and photocopier is same thing).
Even basic things like: open bank account, close bank account, get internet, or a new phone, require at least a Xerox copy of a bill in your name to prove you live nearby (yes, this sometimes result in circular reference, like power company wanting a power bill to start the contract).
For more complex things like opening a company it is not rare to visit in person 5 different government offices taking with you 50+ pages of Xeroxed stuff (I know this from personal experience. Also closing a company is similarly nuts).
So without these machines working perfectly we would all be screwed, sometimes a humid paper jam could mean you having to wait months to get a new appointment with government office to solve your problem. Or outright epic fines (for example if you needed copies to comply with regulations or taxes)
In case it was missed, the word for "photocopy" is "xerox" (like often "kleenex" is the word for "tissue").
OTOH, it was some of the most fun I've had at work.
Many years ago I worked on a small 14 ppm machine that was intended for worldwide distribution. We spent considerable time testing in "hot/wet" environmental chambers because in Brazil, where Xerox had a large factory and sold domestically, people would set up copiers on the sidewalk and sell copying to passersby. Damp paper is very different than dry paper and we had to be robust against it.