The SSN's that you find on Ancestry.com actually come from the US Government. Unfortuanately that information is available as public information. Death, Birth, and Census info is all available from the US Government. Ancestry.com has just compiled the data.

On a slightly different note, I was looking into how and when is an SSN reissued?
If you come across anything please post a reply. Thanks in advance.