Food preferences are largely learned, influenced by flavors, smells, and post-ingestive effects of nutrients, leading to cravings based on associations.