It's long enough for society to change radically and for the Magic to go away.
That doesn't happen overnight.
Especially if you take the statements from Winter Wrap Up about Ponyville being centuries-old in conjunction with Granny Smith being a founding member of the community together, which implies that ponies live for centuries.