Finding good talent is hard. Spain is filled with low grade coders. A bit unrespectful, but I have experienced it already for many many years. And not only tech. Also sales etc. Quality output is hard to find there.
Are you hiring junior or lower-budget developers? That might explain your experience. I've worked with great engineers in Spain, but of course, like anywhere, quality varies.