Advertising or informational industries (e.g. non-tangible goods industries) seem to operate differently, as you've said.
So it makes sense to never extend credit.
I do think it’s very industry specific and food / retail as one of the worst.
The reason kind of seems to be to give more flexibility to the supply chain. If everyone required payment upfront to get items to shelves or lots for customers to buy, then the risk goes more fully on the last link in the chain. It appears this pattern began to spread the risk to the entire chain.
This was 2003-2006ish, for the record.
How the hell is this even legal?
But from the industry side. At the big corp level this is all handled by some CRM/Oracle/IBM/SAP system and once things have been approved by whatever chain of people need to sign off, the payments are automatically sent out. The flip side is that if someone hasn't approved something, or they're waiting for paperwork unbeknownst to you, you have to wait until they do another run. So you have to nag them. The people who bought the thing from you are probably not the people who will actually pay you.
I run an advertising company and we always take payment in advance and work with several large (publicly traded) companies.