Your body has other mechanisms to make you remember you need 1, like for water intake or breathing. Those mechanisms starts as soon as anyone birth and doesn’t need your intervention to become a need. 2, 3 and 4 however become needs as you decide (consciously or not) it is. Same with heroin, social media or basically any other think we call "addiction".
Food obviously is a bit confusing as our omnivorous and resilient condition let us satisfy it in many ways : you don’t really need green vegetables, meat, sugar, beans, fish, nuts, muschroom, roots etc… to survive but stopping them all together will kill you. Some subset (of quality/quantity) keeps you in a better condition than others.
Appart that condition effects, the way you that specific subset as a need has more to do with habits.