My local hummus factory puts the product destined for Costco into a different sized tub than the one destined for Walmart. Companies want to make it hard for the consumer to compare.
My wife grew up in a hot and humid climate where things went bad quickly, so this tendency doesn't come from nowhere. Her whole family now lives in the US midwest, and there are similar arguments between her siblings and their spouses.
https://www.nist.gov/system/files/documents/2023/02/09/2023%...
Any applicable unit pricing requirements would be at the state/local level, not federal, but only a few states have such requirements. See: https://www.nist.gov/pml/owm/national-legal-metrology/us-ret...