It's important to remember that the Art Nouveau part of Barcelona was where the very rich people lived. They were apartment buildings for the very wealthy. Also the very nice houses that we visit on holidays and trips tend to have originally been very rich peoples' houses. It's like looking back at music in past decades and only seeing the good stuff and forgetting that there was far more mediocre stuff that has since been collectively forgotten.