At the actual MoP period, you had to reach level 90 and learn the “Wisdom of the Four Winds” skill for 2500 gold.
Expert Riding skill in Shadowlands expansion costs 250 gold from the trainer. Flying Unlock in MoP locations is available for characters above the level 30.