It's pretty cultural. The contract is a two way street. Most people don't do what you describe because they wouldn't want the company doing it to them. People probably also worry about burning bridges.
Since it's a legal contract violating (by leaving) it could lead to lawsuits.