The owners of a firm facing a high probability of bankruptcy prefer to invest in risky projects, because the shareholders have little to lose and might win if successful. If the company doesn't invest, the owners can't benefit. If they do invest, at least the owners have some possibility of a gain.