That's very surprising. How do they look up your license? Using your name?
Driving is without a license in your "immediate possession" is definitely against the law in California[1] and I've never met someone that intentionally leaves it at home. Restaurants that card for alcohol also makes this a no-go for most people.
1: https://leginfo.legislature.ca.gov/faces/codes_displaySectio...