It's not just that, often times those unhealthy foods are all that are available to people. Food deserts are a thing, people do their grocery shopping at convenience stores.
Overworking people to the point where they might not have time to cook a meal is also an issue.