I give you an example.
When an iPhone comes in with water damage and it is not powering on and it is for data recovery only, we fix the device only to the point where it can turn on and data can be read from the NAND by the device.
What I mean is the customer gets the device back in a state where he can backup data themselves. Maybe the other components of the phone like the camera, speakers are bad, or even the display isn’t fully functional and is just working enough to backup the data.
If you had a passcode on it, you are fine.
There are cases when the phone needs a temporary battery or screen for the data recovery to be possible (and the customer doesn’t want to pay for said replacements), in those cases the customers usually bring a flash drive and wait while we transfer the phones contents to the drive.