Stop focusing on the absolute number of "$/year", and things will make more sense. Seemingly you'll be able to live a more lavish life in Spain given 1/4 of the salary compared to FAANG, yet your life is better and you can afford more.
Higher salaries aren't always better, especially when you're almost willfully ignoring more important things like purchasing power and quality of life.