Because the company's need for capital is not small, companies generally open up opportunities for capital owners who want their funds to increase and be protected from inflation or currency depreciation by participating in financing the company's operating costs.
Then, as a reward and profit for the owners of capital or investors (in the scope of business better known as stakeholders), the company will distribute these profits according to the percentage of capital ownership of each stakeholder and with the percentage of profits that have been made and agreed in advance.