Multi-national companies use developing countries as their base ground for manufacturers or we can say for labor forces. Cheap labor, cheap land, and cost-effective transportation are some key points that make developing countries a hot cake for multinational companies. All the telecom companies in Bangladesh are owned by foreign companies.
Also keep in mind that
multinational corporations provides capital into developing nations. For instance, on the financial account of the balance of payments, the investment made to construct the plant is counted as a capital flow. This capital expenditure aids in the growth and expansion of the economy's productive capacity.
This degree of investment is really crucial for determining the rate of economic growth, according to the Harrod-Domar model of growth. Increasing the influx of foreign money is one of the best strategies to boost the rate of economic growth.
They do not provide capital into developing nations but into their assets and business. They provide investments and job opportunities. And they do all that purely in their interest first before any other reason. Besides, almost everything goes back to its home country
Like the OP said, they wouldn’t be there in the first place if they thought they couldn’t make profit.