Retirement tax questions

Since I paid capital gains and dividend taxes each year, why do I owe more taxes when I sell the funds?