If you don't provide ID to a police officer, how would he know that there weren't wants or warrants for your arrest? You can be detained until your identity is established. If they didn't do this then criminals could just make up a name and say they didn't have an ID. **********?