State tax filing

The 5.4% in this example is % of DIVIDENDS from U.S. Government Securities.  On what basis are we assuming that the percentage is the same for CAPITAL GAINS from USG securities?  This is where TurboTax is causing this confusion.