Stuttgart played the CL in 09/10 because in the Bundesliga season of the 08/09 they finished 3rd, only 3 points behind Bayern and 5 behind champions Wolfsburg. Spain has sent countless of small clubs in the CL in recent years (Osasuna, Celta Vigo, Real Sociedad, Villarreal, Sevilla, Malaga...