Sometimes it takes the government (or someone funded by them) to come up with novel solutions for the maladies that have plagued humanity. Norman Borlaug for famine, Jonas Salk for Polio, the research into Avian influenza and H1N1 pandemics, space exploration, etc. have all been either spearheaded, guided or financially encouraged by government agencies.
These are areas which charities (and corporations, for that matter) have sometimes fallen short due to either lack of funding or the mission-critical nature of the moment. Either way, we must agree that it's tough to conclude that governments are completely incompetent and charities aren't, however apt the perception may be.