Because they don't have to operate in your country. Google can simply decide to no longer run any operations within their borders to avoid the law.
Heck they could potentially even have a subsidiary corporation whose sole purpose is to squat Google.es and redirect to Google.com/es/