Because they are a really social society, the Spanish think of their neighbors as an asset not a liability and they also highly value being within walking distance to social meeting places like bars and restaurants (which encourages higher density housing).
Then there is the cultural aspect of being owners not renters as the article goes into in detail.