Medicare and Medicaid are different. Medicaid is a pure wealth transfer program. Medicaid patients have done nothing but exist and get sick. Medicare patients usually have paid into Medicare for decades.
About Medicare and Social Secuirity...what is not fair about them is that if a person never is in those programs, because of death or not getting enough quarters, nobody gets the money paid in back, either to the estate or as a refund.