Medicare and Medicaid, a failed welfare program

How does it happen that a program meant to take care of our elderly and young disadvantaged fails? I am an American...