Because that salary is great in India which probably has at least 10x developers than Spain. And with that money you can really hire really good Indian developers who can speak English well enough, slog hard unlike the pampered Europeans and are hungrier to prove themselves in general.