Here's why:
* Sound: The "y" in "mighty" makes a consonant sound, similar to the "j" in "judge".
* Position: It's followed by a vowel ("i") and is part of a consonant blend ("th").
While "y" can sometimes act as a vowel (like in "fly"), in "mighty" it behaves as a consonant.