Various things can cause phobias.
It can be because a phobia was learned in early childhood, either from actual experiences that stuck with us or from seeing adults around us acting with fear toward certain things. Someone I know has a severe phobia of snakes, and this is because she grew up...