Costa picked Spain because he wanted to play a WC in his home country.
Scolari did not consider him good enough or whatever for the squad which is ridiculous. I can understand Costa's decision because there was only one country who decided to give him a chance.