Spicier food in hot countries has been explained in terms of natural selection on human cultures, with spices with antimicrobial effects considered to be an adaptation to increased risk of foodborne infection.
https://www.nature.com/articles/s41562-020-01039-8