It's called the 4th ammendment.
Your ID is like crack to the police. They will, and can, lie to you and tell you that you are required to give them your ID if they talk with you. Unless they have a Reasonable Articuable Suspension that you have or are about to commit a crime, the 4th ammendment...