Because there was an actual cash dividend, although reinvested, it is considered to be income and thus taxable. And, as with any stock, capital gains from shares held in a dividend reinvestment plan (DRIP) are not calculated and taxed until the stock is finally sold, usually several years down the road.
[Edited | 3/31/2020 | 9:50am PDT]