It originated in the early 20th century, likely from the German word "kaputt," meaning "broken" or "destroyed."