I have worked in a couple factories for short periods, and like @Feryll said, the management at these places don't always follow the rules when it comes to fire hazards and worker safety. In both of the places where I worked, it was common knowledge that many workers were stealing.
One of the factories where I worked put labels in clothing and shipped the clothing to stores and other outlets. All of the exits in the factory except for two were always locked. This was done so that no one could leave the building without passing by the main office or the security guard's station.
The doors would be unlocked when the inspectors came out to see the factory and do their evaluations.