The Portuguese company acts as gateway and code review (aka fixes) the deliveries, while ensures that the costs remain low.
The actual owning company then regularly threatens the Portugue one to fully move into offshore if they cannot keep up.
Actual scenario, I will refrain from naming which ones.
We're just embedded into normal US teams and communicate directly with American engineers, managers etc. Everyone works remote. Only difference is that I work 11-19 and turn off Slack at 21.
That scenario is a time bomb, and if the americans are the ones putting the money in the table they'll get bitten by it.
Anyway, nowadays with services like remote.com or similar ones, you can hire and manage your own talent without the outsourcing company overhead (not affiliated with then).
There are even companies that hire externals based on ticket budgets, e.g. "we have budget this quarter for 10 tickets, hire externals to handle them".
The world of companies whose main selling product isn't software is quite interesting in this regard. Anything related to computing is a cost center that has to be minimised.
We have between 20 and 30 vacation days depending on the country, plus national holidays that can be used to extend it even further on lucky years.
On some European countries unions actually matter, they affect the whole building across a specific industry domain, regardless if the devs think they should belong to one or not.
Here in Spain I know a handful of devs working remotely for american companies. It's true none of them get +100k but they are about 70-80k and say it's pretty pleasant experience, so I guess they also have the typical EU holidays package + some other niceties.
So I guess that while they're cheaper for those american companies, it's not everything about cost, otherwise they could go somewhere else and pay 20k. It has to be, because AFAIK for american companies the attitude towards work here in europe is prety alien.
Every time an american company has tried to set up in Europe and manage their operations as in america it has failed.