Draco and Hermione were the possibility of life after Cedric’s death and Theo needed to make that possibility his reality. At this point, there was simply no other option. Whoever killed Cedric would pay with their life and Theo’s life would continue on.