It appears that the latter is what happened.
Perhaps those who did the assembly of the doors at Boeing did not use the right kind of washers that are needed to prevent the unscrewing of the bolts, or they did not apply the correct torque to the bolts.
It is extremely surprising if such trivial errors can happen during the assembly of an aircraft.