Borrowed from Middle French chappeau. The interjection is after Modern French chapeau in similar use, originally short for chapeau bas.
Practice speaking and memorizing "chapeau" and many other words and sentences in English.