I heard this there are some other reasons there might have been some style from India that both Kalari and early Shaolin drew from.
Well, that's the whole internal vs exeternal debate.
Shaolin was considered External because of it's Indian origins (religion and thus its martial arts) and Taoist was considered internal (because its religion and its martial arts were indigenous to China).
But, most of early Shaolin's martial arts came from Chinese military (Tang Dynasty especially, but maybe earlier too.)