Highly doubt that this would be an extension cord, more likely to be a cord from the light fitting that is attached within the shelving. Would assume that the small bracket that normally holds this cord in place has broken. Whilst this is still a hazard and not a good look, it is not uncommon...