Put originally it was a pejorative used by professional telegraph operators to make fun of 'ham fisted' amature radio oporators who were bad at morse code.
Source: My father was very active in UK ham radio circles back in the 1980s.
Source: My father was very active in UK ham radio circles back in the 1980s.