There's an easier explanation

:
both are IndoEuropean languages, i.e. they come from a same original language called "IndoEuropean" by grammarians, because its extent was from India to Europe. It disappeared a long time ago, for it evolved into the languages we know now. Thus, nowadays, its forms are only reconstituted ones, but this evolution explains why languages separated by thousands of kilometres are sometimes quite similar. It is true for Latin and Turkish, but Sanskrit and Latin are both quite close too, though there were very very few contacts between Indian and Latin people.