There's no law (yet) that says you have to carry ID in this country but police don't necessarily care.
There's no law to keep them from asking for it, yet, either.

But you do not have to give it to them if you are not operating a motor vehicle.