Your grandparent's beliefs become your parent's beliefs which then become your beliefs.
Or maybe it was your teacher or your friend's parents that gave you some of the beliefs you have today? Whoever it is and whether it's that pink is for girls and blue is for boys or some of the more serious ones. We've all been conditioned to think certain ways.