In order to withdraw from SS you must be eligible - including have had contributed to it in the past. The money is even accounted for separately from other government funds. The funds are supposed to go and have historically gone from contributor to beneficiary. It’s also not had funding problems until those funds got mishandled by past governments (congresses/presidents) and tapped for other things.
First link from google: https://chomsky.info/20050601/