it was initially a "Widowers fund" created so the widows wouldn't starve when their husbands died
The initial law did not include survivor benefits. They were added 4 yrs later.
http://www.ssa.gov/history/hfaq.html
It was a retirement program for workers.