Chi-Sq Test for Numeric variables



Can we use Chi-Sq test to test whether two numeric variables?
I was watching a video on Youtube by Khan Academy -->

Here he has compared 2 variables - observed and expected.
But both of them are numeric.
So is it that we can use this test to compare numeric variables or is it only applicable on categorical variables?