Dividends and share repurchase analysis (Corproate finance)

Hey everyone,

Why did we use the cost of retained earnings to calculate the WACC and not the cost of equity in the challange proble from the schweser notes (last question in the dividends and share repurchase analysis reading) is it because cost of retained earnings is appropriate when using net income ??

Thanks!

K