Suppose you want to invest in a company you truly believe in. Where will you get the shares from? Unless someone else thinks it's crap and wants to unload it, there will be no one to buy it from.There are a reasons to sell a shares besides thinking that a company is bad. Sells are also sold to raise capital, this may of course be done by the company itself to raise capital for expansion or in lieu of a loan. This is precisely what an IPO is and companies will also do it post IPO if the cirumstances are right.
But individual or institutional stock holders may also sell it to raise capital even while thinking that the company is doing fine and will likely go up over the long run. If the money was invested specifically for retirement or college for instance, it will be withdrawn (the shares sold) for that reason. An individual or instution may also sell some shares to support diversification or to move to a lower risk investment class while believing the company is most likely to prosper. And of course its perfectly rational to sell your shares if you believe an overall market decline is coming, even if the intention is to rebuy those shares when you believe it is near the bottom
There will be plenty of people to buy stock in any major company without anyone necessarily believing the stock is bad.