There are many reasons why dogs become fearful.
It could be neglect, abuse, lack of proper socialization with humans and/or other animals, pushed too much at an early age, physical trauma, pain, emotional trauma, any trauma at a critical period of puppyhood, etc.