Unlike most government programs, Social Security and, in part, Medicare are funded by payroll taxes dedicated specifically to them. Some of the tax revenue pays for current benefits; anything that's left over goes into trust funds for the future. The programs were designed this way for political reasons.
James Surowiecki
Future, Government 