And of course, habits are also just... habitual. If it's a habit to get to 9PM at night and think, "crud I need food, let me just order something quickly", that habit will still be difficult to break even if everything else is easy.
It's of course doable -- I basically never eat out or order food, I cook everything. But I understand why people don't. Cooking is something I have to plan around. It's annoying to want to make something and then look in the fridge and realize I forgot to buy an ingredient. And I only cook for myself, I don't have to manage a full family and kids.
But it is of course way cheaper and (depending on how you approach it) can be much healthier.