Harry get's abandoned by his friends in the forbidden forest on orders by Dumbledore. Harry had recently become terminally ill with a disease that can only be cured by true loves kiss, so Dumbledore after trying his bets on Ginny, Hermoine, and Cho Chang end in failure he decided he must get rid of the savior knowing full well he was a horcrux. Doing so he would be murdering killing two birds with one stone. Getting rid of the useless boy and killing the horcrux that is Harry's soul.