Rumour has it that Christopher Columbus is to blame.I do think it's confusing that the word pepper is used to mean chillis, bell peppers and peppercorns though
When he "discovered" chiles in South America, he mistakenly thought they were pepper; as is peppercorns.