The article isn't about the Heian period (794–1185) but Nara period (710–794). (Or at least it is implied.) The Nara period was the first historical period in the history of Japan. (Historical defined as: written history surviving from that period exists) In that sense, it makes sense to me to call it "ancient".