“This header is sent to websites to tell them what language to serve the site in.”
The browser already tells every site which language you want, through the Accept-Language header. The author’s browser says English. Google sees a Costa Rican IP address and serves Spanish anyway. The standard has existed for decades. Google decided its guess about where you are beats what you actually told it.