I feel like Maud's ancestor was the one who pointed Celestia and Luna in the direction of the "Gems that could use the power of friendship to defeat evil."