I'm trying to explain how mf1's anecdote above might arise without the age being encoded in the number. Particular tranches of numbers may have been used in particular years. If you know roughly what year the number was assigned, the person must have been born before then, so you have a lower bound on their age. Until recently numbers were typically assigned when people entered the workforce / claimed social welfare, which would allow you to narrow down the age range even further.
As you point out this won't generalise, e.g. because numbers are now assigned at birth, non-nationals get numbers when they enter the country etc. But as I said, it's only an indication.