Because Leying didn't know that Zhang Haoyue was watching the game at the time, and the reason why she didn't erase Zhang Haoyue's memory was because Haoyue promised not to tell others the secret that Leying was a music magician, and even if When he said it, others might not believe it, and thought it was Haoyue who had watched too many science fiction movies.
And if Leying erases his memory, the plot will not be able to continue, and Zhang Haoyue plays a connecting role in the story of the film. He is equivalent to a witness of the music magician against the demon of forgetfulness.
He was also the only one among all their classmates who knew that Leying, Ning Xianer and Yu Xiaoling were music magicians, and he finally met Ling Chen and the principal who were both music magicians. They are all music magicians who came from the music industry.