 He does this as a final act of friendship towards Dean though both admit it doesn't change the fact that they are now enemies.Castiel also spends the episode one step ahead of Bobby investigating H.P.Lovecraft's opening of Purgatory in an attempt to find a way to open it himself.