Europe, like the US, is rich because it outsources lower-value production and focuses on higher value targets.
Chip production is not nearly as high in value as all the things you can build with those chips.
Local production is about supply chain security, not profit. Europe doesn’t mind one bit paying for chips produced somewhere else, but it does mind a world order where global trade is unreliable.