the "time commitment" is just another BS excuse. there are plenty of recipes that can be prepped, cooked, and served in the time it takes to order and pickup takeout. there are tons of youtube videos on this exact topic. search "but faster".
the equipment and space concerns I'll give you. there are some people who literally don't own a functioning heat source. that's a non-starter.
but if, like most americans, you do have a functioning oven/stove, you can made a wide range of tasty and healthy meals by adding just a couple cheap items to your collection. to get started, you just need a knife, cutting surface, and a sheetpan. cut things up, add a light drizzle of oil, and roast them in the oven. takes a couple minutes of prep followed by 20-30 minutes of doing something else while it cooks. bonus: add a meat thermometer to safely cook meats. or alternatively, try all the same combinations of meats, starches, and vegetables in a skillet if you want to put in a little more active time to get a finished meal faster.
Shit a microwaved meal takes 5 minutes and requires almost zero work.
It's just unreasonable to expect everyone to do everything for themselves all the time.
That’s the problem. They need to figure it out.
Mostly the issue isn't necessarily time but giving into your cravings. Junk food is designed for that. People buy junk food because they like eating it and crave it. Even if the experience isn't great, the craving still drives them to eat it. Ever felt disappointed after eating at a burger chain? That's what happened. You craved something and the marketing triggered you enough to buy a burger or whatever. In the end the food is greasy, salty, not really hot, and doesn't have a whole lot of flavor. And you munch it down and forget about it.
And particularly when people have worked a long day and just want to stuff food into their mouths. For me, going to a supermarket at the end of a working day generally leads to really bad decision making. And I actually know how to cook some food.
A good way to get into cooking is to make your own junk food but do it better. This is super easy because most junk food is absolutely terrible. If you like burgers, get some meat and make some of your own. It's hard to do worse than good old McDonald's. That stuff is just really nasty. Use that as a benchmark and strive to do better. You can't fail.
Burgers are a great example because this is historically how people made the most of their cheap and off cuts of meat. So, again, great if you are on a budget.