Of all places in Spain Madrid is probably the "meh"est. Not wanting to be snark but the selection process seems strange indeed.
E.g. in Poland software is more Krakow based than Warsaw. Because why would you be wasting on rent, being in a large city where you aren't that important?
They develop for LATAM in other offices