Here's why:
* Pronunciation: In "anything," the "Y" makes a vowel sound similar to the "i" in "win."
* Function: It acts as the center of the syllable "thing," which is a vowel-centered syllable.
However, it's important to note that "Y" can sometimes act as a consonant, as in the word "yellow." The function of "Y" depends on its position and pronunciation in a word.