Question: why cedric had to die?
Answer: For the simple answer: Cedric had to die simply because he was an inconvenience to Voldemort. Voldemort set up a very direct plan to be “reborn”, and he needed Harry. Cedric was not supposed to come along, so like Voldemort always does, he just got rid of him.