Correct. A sandwich is worth more if you want a sandwich than if you don’t.
I always travel with sandwiches that I either make at home or buy. Throw it in your carry on bag and eat it whenever you want.
[0]: some restrictions on liquids or if you’re crossing a border with certain foods
You can technically bring an empty bottle of water or container and fill it up inside of the airport.
Your options would typically be a water fountain, bathroom sink or asking a bar tender to fill it up. Typically if you go the bar tender route you may end up tipping them so you don't escape some cost there.
I've also heard you can bring a frozen water bottle. The idea there is if it were a dangerous liquid then it wouldn't freeze so you're allowed to bring it. The hard part would be ensuring it stays fully frozen while waiting on line.