Well since people have been consuming it since about 1500 BC it's not surprising it's become quite popular is it.
"
It’s unclear exactly when cacao came on the scene or who invented it. According to Hayes Lavis, cultural arts curator for the Smithsonian’s National Museum of the American Indian, ancient Olmec pots and vessels from around 1500 B.C. were discovered with traces of theobromine, a stimulant compound found in chocolate and tea.
It’s thought the Olmecs used cacao to create a ceremonial drink. However, since they kept no written history, opinions differ on if they used cacao beans in their concoctions or just the pulp of the cacao pod."
https://www.history.com/topics/ancient-americas/history-of-chocolate