Because the horizon limit refers to the region for which the speed of light is the fastest means of signaling, and that even at this speed, the signal cannot get out. Every photon carries an equivalent amount of energy...which by general relativity can be affected by gravity...and so massless photons still carry an effective amount of gravitating mass which is then subject to being trapped by the event horizon.