We have evoloved to crave things that were rare in hunter-gather environments. Fats and salt are rare in hunter-gather environments and thus we crave them today. We developed cravings that were beneficial in environments of evolutionary history.