Some times smaller companies do stuff that makes them a lot of money but also creates debt or legal liabilities (transgressing some environmental laws or not paying taxes). When they go bankrupt later the "investors" already took the proceeds out by dividends. This certainly happened a lot.