Companies know this, and depend on this effect. It keeps most of their employees "loyal" to the company at an incredibly low cost, since our social instincts are doing most of the work for them.
Management training pretty explicitly teaches you how to use your team's ego, desire for respect, need to please others, and need for acceptance and praise to push more work to be done and shape behavior.