This is essentially a reduplication of chat, which is a diminutive version of chatter, which has been there since the 13th century as both a noun and a verb. The 'to and fro' tone of the phrase, as in tick-tock and see-saw, alludes to the two-way, conversational aspect of chit-chat.