CVA result using binomial tree

When using binomial tree to calc CVA, the discount factor use risk free rate.

Since we constructed the binomial tree, the rate in each step is changed, why not use the rate generated on the tree?