From old + hat, possibly a reference to something familiar and well-used. The Oxford English Dictionary suggests a connection to German alter Hut (“something familiar and hackneyed”, noun, literally “old hat”).
Practice speaking and memorizing "old hat" and many other words and sentences in English.