It’s just a form of national identification number. It’s assigned at birth, and is used as a means to legally identify an individual for government purposes (taxes, benefits, acquiring licenses and other forms of identification). They exist in Europe as well, they are just called something different than SSN. Not every country uses them, though.