Plenty of time for something to hit it causing course change.
Makes you wonder why it hasn’t happened yet.
So many opportunities .
Still, why not go skiing in April and do your taxes later?
You raise an interesting point. Right now its orbit intersects, very nearly, the orbit of earth, and the question is one of timing ... being at the same place at the same time along two linear tracks. If this situation were to persist indefinitely, it would have to hit after, say, a few hundred "opportunities", amounting to tens or hundreds of thousands of years, as I guess.
However, the orbit of the earth precesses, as does that of Apophis, presumably, and as their aphelions move, the orbital intersection is eliminated for some much lengthier period of time, so you have this layering effect, with periodic recurrences of eras of periodic close approaches.
Beyond that I assume there are other variations, or "accidents" which create or alter this scenario. Anyway, it seems like we would be doing our distant posterity, if such is fated, a big favor if we would take care of this sucker.