https://www.investopedia.com/terms/p/prepaymentrisk.asp
For mortgage-backed securities, mortgage holders may refinance or pay off their mortgages, which results in the security holder losing future interest. Because the cash flows associated with such securities are uncertain, their yield-to-maturity cannot be known for certain at the time of purchase.