a European or an European

Why We mustnt put an before the word “european”?
For example:
I dream of visiting a European country.
Shouldn’t I say:
I dream of visiting an European country.

No, because the “e” in that word has “y” sound and “Y” is a consonant.

Same with "a university, etc.