Ponyville was first founded by earth ponies, but they wouldn't always be the only kinds of pony who would live there. Eventually, unicorns and pegasi would also call that little town their home, and Granny Smith, in her younger days, was right there to witness them when they first moved in.