Gravity does not cause refraction in the same way light does when passing through different media. Instead, gravity bends the path of objects and light towards massive bodies like Earth, as described by general relativity. This curvature of space, or vacuum, allows light to follow a geodesic, which is the shortest path in a curved space. Unlike refraction, where light speed changes between media, the speed of light remains constant along its path in a gravitational field. Therefore, while gravity influences the trajectory of light, it does not cause refraction in the traditional sense.