Based on my experience in India, an Apple Store normally does not open or unseal a new device before handing it over to the customer. The device is generally handed over in its original, factory-sealed packaging, and the customer has the choice of taking it home and unboxing it themselves or opening and unboxing it at the store.
If the customer chooses to unbox the device in the store, the unboxing is carried out by the customer themselves, usually at a separate table or designated area provided by the store. Apple representatives do not interfere with the unboxing process or unnecessarily look over, inspect, or “peep into” what the customer is doing. The customer is allowed to open and inspect the device independently, in their own time and manner.
This, of course, is based on my experience with Apple Authorised Sales Stores. If the purchase was made from a store that is not an Apple Authorised Sales Store, they may have their own procedures or practices, which I am not familiar with and cannot comment on.
Therefore, if someone claims that the device was opened, inspected, or photographed before it was handed over. In particular, it is not clear to me how the device could have been opened without the customer's permission or knowledge, especially if it was supposed to be a new, unopened retail unit.
Unless there was some specific issue—such as a regulatory requirement, a pre-delivery inspection, a service intervention, or a device being replaced under a particular procedure—a new retail device should ordinarily remain sealed until the customer chooses to open it.