There doesn't seem to be a definitive answer. It may or may not have started as two words, but its first known appearance in print, second half of 20th century, has it as one word. Here is Michael Quinion's explanation, which should be better than most.