I don't think it came from anywhere originally, it's just a thing that people do in films/ plays/ etc when their evil plans have been foiled, or something (eg Darth Vader at the end of Episode three, if you got that far through the dross that is Revenge of the Sith).