If a fund has a gain in a security and then sells that security, it must distribute those capital gains to shareholders on record within its fiscal year. Even if you reinvest that distribution back ...
If a mutual fund has a holding that has appreciated and goes on to sell it, the fund realizes a capital gain on that position, and those gains in turn need to get passed on to shareholders by the end ...