No luck involved, he did it tons of times, over n over.
The run before that he messed up a tiny bit and tapped his back bumper off, so that run he compensated and got even closer as his back bumper wasnt in the way, literally rubbing the spoiler on the wall!