That wouldn't really work in a litigious society like the US. If someone got sick or died
due to food poisoning was it because of the product or because of the unclean container? Even if it was due to the container, there's no way to prove it and in the era of social media, the manufacturer's reputation would take a major hit and no major brand will risk that.
So the only viable option becomes reusable containers aka glass containers which lets manufacturers control the cleaning with a supply chain - this is still big for soft drinks sold from restaurants in India. However they're very heavy vs. plastics and both actual cost and the carbon cost of transporting them are probably unfavorable.
It's not really an easy problem to solve though reduction in consumption of packing plastics is definitely possible