Enquiry regarding expired license and h1 extension?

My friend’s license got expired. Before renewing it, he was stopped by a cop in traffic and after he saw that his license got expired asked him to come to court. He is currently in H1b extension. Will he face any issues regarding this court date?

Usually, the extension is not affected.

Thank you. Any idea regarding why the police asked him to come to court?