It lacked the population. Spain is and has historically been a relatively unpopulated land. This means there was not much of a market for industry, but also that there were not enough concentrations of people where to settle factories.
5.1m questions
6.7m answers