The refractive index is used to measure how much light bends as it goes from one medium to another the refractive index of air =1 as light doesn’t bend in it
When looking into a glass of water with a straw the straw may appear bent or morphed as the water has a different refractive index to air (and the light is passing from air to glass of water)