Why is fayre spelled differently to fair?

That's probably the Old-English (anglo-saxon language) spelling.