That is just a bad law. It invites the state to issue an I.D. card to everyone and demand proof of some status for only the mere suspicion on the part of the Policeman.
Just as we need to when driving a car.
Buying beer or cigs.
Buying or renting a home.
Getting a hotel room.
or even getting a kid into little league.