There is always a final boss in every novel. He is deliberately planning every step of the way just to frame the protagonist.
Qi Yan came to save the protagonist. He had only one purpose, to get rid of the villain and help the protagonist's journey to becoming a god be smooth and smooth.
But in the end, the only one he saves is the villain.
Purpose: redemption