Your characterization is badly wrong.
EDIT: Until recently Social Security took in more money than it paid out. It’s run by the government so its expenditures are counted as a budget item. But it is a sound pension system whose defects can be easily fixed if a certain party would actually govern. It is not the largest expense by the government. It’s just that it is a government run pension system. It’s not an entitlement either.