I don’t get the intuition behing the relation between the two below equations:

Equity risk premium = earnings yield  risk free rate

Equity risk premium = dividends yield + g  risk free rate
Why do we add g to the dividends yield and don’t add it to the earnings yield to get the total expected stock return of equity?
Isn’t the earnings growth as much of a composent of expected total return as the dividends growth?