Americans, why do you call it “criss cross applesauce”?

In the UK we just call it sitting with your legs crossed. I can understand the “cross cross” bit but “applesauce” really confuses me.