This also blocks GM/Ford/Chrysler from selling directly to the consumer. This isn't specifically Tesla focused, but is favoring the auto dealer network which wants to remain relevant and get their cut.
Presumably if the makers had a do-over, they might try direct to the consumer themselves, but the present conditions make that impossible.
The dealerships do not benefit the manufacturer.