Of course they have a customer in the sense that someone is funding them and owns the product, however I would propose that there is not necessarily an immediate "need" or requirements given, and there is a high tolerance for undirected or self-directed research.
SR-71 Blackbird and F-117 Stealth bomber come to mind.