The goal of NSF grants aren't really to fund research into things that cure cancer, they're primarily to fund the education pipeline needed to train young scientists. When those students graduate, they tend to get jobs in the industry where they can advance commercial solutions that often have significant societal benefit.