From Middle English whynyen, whinien, akin to Middle English whinen (“to whine”).
Practice speaking and memorizing "whinny" and many other words and sentences in English.