The $\chi^2$ distance function is defined as
$$ \chi(u,v) = \sum_{i=1}^n \frac{(u_i-v_i)^2}{u_i+v_i} $$
and the $\chi^2$ kernel function, used in support vector machines, is $$ K(u,v) = \exp(-c \chi(u,v) ) $$ for some hyperparameter $c$.
This distance function and kernel are most commonly used to compare the similarities between two histogram samples, e.g. in bag-of-words or bag-of-feature applications.
The name suggests some connection with either the $\chi^2$ distribution, or the $\chi^2$ Pearson test. The closest I can get is that the $\chi^2$ distance is trying to approximate $$ \sum_{i=1}^k \frac{(O_i-E_i)^2}{E_i} $$
where $O_i$ is the number of observed samples in bin $i$ and $E_i$ is the expected number of samples in bin $i$. But, to say that this quantity asymptotically approaches a $\chi^2$ distribution with degree $k-1$, it doesn't seem connected to the distance function or kernel application that much.
Question: What is the connection between the $\chi^2$ distance function, or kernel application, to the $\chi^2$ distribution, especially for degree higher than 1 (and the PDF is not an exponential decay)? Or is there none and it's just a naming idiosyncrasy? Any sources is also appreciated Thank you!