

You don’t need to have a dev environment in order to be considered “tech literate”.
Just as a single example, an issue I’ve seen is that kids may not even understand what a file system is or how it works, because they’re used to apps like Facebook or Google Drive which abstract away from the concept of a hard-drive, a User folder, file extensions, etc. Then they grow up putting photos on instagram, writing essays on Microsoft Word, and to them it’s some unexplained internet magic. They never had first-hand experience with creating and modifying files on a local file system, and so they lack the understanding of what’s going on behind the scenes.
The legality really depends on the jurisdiction. Where I live, it is 100% the business responsibility to ensure this doesn’t happen, and if it does, there are big fines for the business, the customer is not at fault.
Plenty of things the business could do to reduce this, such as making people park up after ordering (a very popular option where I live), increasing prices to reduce their demand, having a digital queue system, removing the drive-through altogether, etc.