It's not just habit; it's the psychology of learning at work. Different types of learning—including association, ...
Social learning theory, developed by psychologist Albert Bandura, uses theories of classical and operant conditioning. But in this theory, the environment plays a large part in learning.