If you are suspected of a crime you must provide ID. Although situations are rare and the vast majority of cyclists are perfectly law abiding it is good practise to supply whatever ID is requested by the peace officer, without hassling them with unnecessary questions.