When we are little we see the way our parents or elders act and that tells our brain that is the correct way to act. As we grow up the things they tell us we will become is what we think will happen and so we do that in fear that we will disappoint them.
Habits are typically learned behaviors. Parents set an example for their children, and if they're not exposed to other ways of doing things, they will surely adopt similar or exact habits.