There are many reasons, but the main thing for me is that the altcoin has lost its value, or demand has fallen or it has reached the maximum price in the market. In cases where I don't need the money, I sell them to buy tokens to have additional investment.