Dear Student,
Answer to your question is as follows :
Orientalists like William Jones studied ancient Indian texts on law, philosophy, religion, politics, morality, arithmetic, medicine and the other sciences. This was for a reason. They felt that Indian civilisation had attained its glory in the ancient past, but had subsequently declined. In order to understand India, it was necessary to discover the sacred and legal texts that were produced in the ancient period. For only those texts could reveal the real ideas and laws of the Hindus and Muslims, and only a new study of these texts could form the basis of future development of India.
Regards