It is shady. But I think you have a rosier view of historical working conditions than is warranted.
As far as the US: noncompetes are broadly legal. California is notable as being a state where they are not.
There is a history section on wikipedia: https://en.wikipedia.org/wiki/Non-compete_clause