Dividends and capital gains are separate.
If the fund sells stock for more than they paid, that's a capital gain, and they generally are required to distribute that amount to shareholders.
Separately from this, stock owned by the fund will pay dividends from time to time, and the fund must in turn distribute this money to shareholders.
VTSAX pays about 2% in dividends each year. The exact amount depends on the dividends paid by the companies whose stock is owned by the fund.