Where do profits go when British businesses are sold to foreign companies?

To disguise the fact that we are selling the family silver, these transactions are called “inward investment”. But how is tax levied and where do profits go?

And how come a Turkish pension fund can afford to buy the only British steel-maker left in this country when ours can’t/won’t?

A British windfarm, owned by a Spanish company is sold to an Australian company:

Macquarie buys $1.77 billion stake in mammoth UK offshore wind farm

A British steel company owned by an Indian company is likely to be sold to a Turkish military pension fund:
https://news.sky.com/story/turkish-military-pension-fund-plots-900m-british-steel-revival-11783143

The British-owned Morgan Sports Car company was sold to an Italian company:
https://www.independent.co.uk/life-style/motoring/morgan-motor-company-sold-italian-firm-bought-a8810156.html

Boots was owned by the Swiss who sold it to the Americans:
https://www.independent.co.uk/life-style/motoring/morgan-motor-company-sold-italian-firm-bought-a8810156.html

Sainsbury’s and British land sell British superstores to USA:
https://www.independent.co.uk/life-style/motoring/morgan-motor-company-sold-italian-firm-bought-a8810156.html