Retirement tax questions

If the value of the CD was less on the date of death due to the increase in interest rates, why would I be responsible for a capital gain tax on this CD that I did not sell but allowed to mature at the "lower" (original)  interest rate (in addition to paying ordinary income taxes on the interest)?