Light travels slower in oil than in water because:
A medium is defined to be optically denser when the speed of light through it is lower. Hence, optical density of oil is more than that of water.
Mass density of the medium is not related to the speed of light through it.