It's a publicly searchable number identifying you as someone who works in health care. If you google your name and NPI, the number will likely display without even having to click into the link.
I've never bothered to learn mine, and have only rarely been asked for it. I've never had a pharmacy ask for it when calling in a script (really).