Consider two variables said to be "inversely proportional" to each other. If all other variables are held constant, the magnitude or absolute value of one inversely proportional variable decreases if the other variable increases, while their product (the constant of proportionality k) is always the same.
When light passes from a rarer medium into a denser medium, it bends in the medium away from the normal. This creates the phenomenon of "apparent depth" as given in the question.