The best analysis of how something becomes a staple food is:
It is widely available in the region and is high in calories.
Staple foods are typically those that are consumed regularly and in large quantities, providing the majority of a population’s energy and nutritional needs. Availability and caloric density are key factors in establishing a food as a staple in a diet.