Social Security was opt-in since its beginning until Ronald Reagan, when the Democrats and Republicans made it mandatory.
Interesting. I don’t know the history of it.