Why wouldn't Scotland be a part of the EU*?

* Assume we're talking about the actual EU here, not the petty, vindictive fantasy one only interested in 'punishing' countries that step out of line that you carry round in your head.