Well, that is simple to answer. No law. With tobacco there was a 1948 ATF law requiring tobacco sellers to report to the appropriate agency anyone (other than a distributor)names, addresses and amounts spent. They have agreements to collect sales tax.
Many states have a use tax on “untaxed” purchases. Those states could easily use that method to harvest online taxes and strong-arm retailers into giving up sales records.