The refractive index depends on the nature of the material of the medium and on the wavelength of the light used.
An optically denser substance has higher refractive index .Since kerosene is optically denser than water, so it has higher refractive index.