Because the EU thinks it's ok to have an advantage with lower wages, but not on cheap electricity. If they didn't, they would have made regulation that either normalised wages throughout the EU (VERY unpopular with the inhabitants of northern Europe) or allowed nations to demand that all wages must be paid locally in accordance to local laws or tariffs. This is not allowed today, as it would make work migration a lot less beneficial for capitalists importing workers from eastern Europe.