This type of length contraction occurs due to the warping of spacetime caused by gravity. The gravity of massive objects can distort spacetime, affecting the path of objects traveling through it and causing their length to appear shorter than their actual length.