It’s ‘hung’ as in a machine that’s ‘hung up’ and can’t operate......................
The phrase has been around for many centuries, so I don’t think it has to do with machines.