Capital gains is on invested capital, that capital can be lost. Also gains have already been taxed by corporate taxes, etc.
Keep in mind that marginal tax rate is not equal to effective tax rate. Also keep in mind that companies also pay tax on profit - which means that dividends get taxed at company level only to get taxed again at personal level.