That's why loads of top talent end up disappearing into the realms of Google, Uber, Microsoft or Databricks Denmark.
Whether this is a good thing (they get paid well but the US gets the outputs of their labour) is another matter.
It is possible though to get paid a more reasonable rate in DK (which imo is good) and living in Denmark does not guarantee a huge pay cut / local companies don't suppress tech salaries into oblivion, even if the only saving grace is foreign offices.