In the late 18th and 19th centuries, European scholars discovered that Sanskrit is related to European languages.
From this discovery, they began to consider Hinduism in relation to broader theories about the worldwide development of cultures.
India, and Hinduism, became interesting because it seemed to point to Europeans’ own ancestry in ancient times.