Online shops aren't required to collect sales tax unless they do business in the state that they're delivering to. If a company only exists in California, then only California residents have to pay sales tax. Amazon has warehouses or offices in most states.