In ancient Mesoamerica chocolate was an ingredient in many drinks, often combined with flavors such as vanilla and chili pepper.
When conquistadors brought chocolate to Europe, those flavors were replaced by milk and sugar, essentially creating the mainstream hot chocolate we know today. The more traditional chocolate with chili pepper flavor combination, while once commonplace, is now coined "Mexican hot chocolate."