How is risk of loss gets spread over a large number of shareholders?

The risk of losses in a company is borne by all the shareholders. In the face of financial difficulties all shareholders have to contribute to the debts to the extent of their shares in the company’s capital,thus the risk gets difussed among the large number of shareholders.