I suspect the factory had the hinge halves mounted on the doors and jambs when they painted them separately so the hinge, bolts, pins/roller, and springs all got body color. During assembly they probably pulled out the loose pin, put the doors on, and pushed the pins back in and crimped the bottom of the pins.