Such rules come in at the state level and are usually pushed for by the large national unions to bully and push out local and regional small unions. Every major union from UAW to SEIU has been guilty of this.
A company I do contract work for banned Instacart from one of their local stores entirely due to customer complaints to store management about unapproved substitutions.