My "history of science" class taught that science always starts with theorizing from the practical and only later starts inventing theories to extend the practical. Even then, theories are only theories until they become practical.