Android didn't always work like that. A few years ago it used to allow access to internal storage as soon as you unlocked the phone so if you ever used the phone while it was charging you would be exploited.
With how horrible phone makers are at updating things I would not be surprised if there was a significant number of old android versions hanging around.