Recently talked to a DOE program manager. I confronted them with the question why we do things like machine learning or quantum computing in academia, when there's no hope in matching industry for those things. His answer was that from an official perspective this isn't the goal, but future workforce training for national interests and security. NSF might differ slightly, but I think this makes sense.