I assumed, and correct me if I am wrong, that gravity distorts spacetime creating the curvature mentioned above.
My logic, though probably flawed, then leads to the idea that since light enters this distorted spacetime it get pulled towards the object with mass because of the newly formed shape that spacetime is molded into by that massive object.
It's as if the spatial coordinates in which the photons exist forms a pothole and the photons have no choice but to glide on in.
So in that case a photon would not require mass but only to exist in the space that is being pulled.
I hope that makes sense, but more importantly I hope I am understanding this correctly.
These are raw assumptions on my part based on ZERO scientific expertise.