The cochlea contains the spiral organ of Corti, which is the receptor organ for hearing. It consists of tiny hair cells that translate the fluid vibration of sounds from its surrounding ducts into electrical impulses that are carried to the brain by sensory nerves.
When light passes from a less dense to a more dense substance, (for example passing from air into water), the light is refracted (or bent) towards the normal. In your question the light is moving from rarer to denser medium