Special care has to be taken to ensure that the frames temporarily removed during hive inspection are going back in the same position and orientation they were found. This is particularly important for frames in the brood chamber.
The comb structure in a beehive is optimised for the specific needs of the colony at a given time. Disturbing or changing the structure causes stress and productivity loss. It's like having a warehouse re-arranged by an outsider.
The frame structure can intentionally be altered for the purpose of hive management, e.g. prevent or postpone swarming.