The presence of food does not make potions pointless, especially if they heal at different values. Tying food you loot and find in the world to resting means you would present a hard limit on how many times you can rest, or the food is so abundant it doesn't limit anything and is just an arbitrary requirement. The former isn't ideal because it would present the possibility that a player has used up all of their resting materials and is suddenly stuck unable to progress, and the latter is pretty self explanatory. It's an interesting idea but I don't think the problems it presents make it worth the inclusion.