The work of a developer at Google is more valuable than at other companies, especially in Europe. Because they create more value with the same skillset and doing similar work, Google can pay more.
Of course, the company doesn't need to pay you for what value you're able to create - they pay you what the labour market clears at, and pocket the difference.