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.