Have a shared shopping list with the family. Teach your kid to put the milk on the list after they finish it. Be at least somewhat aware of how old your food is. Problem solved. Somehow we managed this model for a century.
Maybe we could do better. Maybe we can automate this as well.
And obviously you just walk anywhere and everywhere. Wouldn't want your legs to grow feeble and useless. Even riding a bicycle is reducing how much exercise you'd get otherwise, it's simply a tool for the weak.