Obscurity isn’t a substitute for security. You still need to have proper authentication and authorization in place.
It is usually not something to worry about, but in some cases you want to avoid leaking that info.
The Allies estimated how many tanks Germany was producing based on the serial numbers, and this gave a closer result compared to other intelligence sources.