What California used have was worse than non-competes. They had secret covenants between manor tech companies not to hire each others employees. I don't know if that has been completely eliminated.
As for other states, you could ask why they have lots of stupid laws. As for California, you could ask why they have that stupid Proposition 13.