Apple has this thing called lockdown mode. In the help article they state that “to connect your iPhone or iPad to an accessory or another computer, the device needs to be unlocked”
Wonder if this helps against forensic tools. Also wonder why would they not disable USB port for anything besides charging or even go as extreme as disabling it altogether and only allow wireless charging.