Fear due to a lack of socialization.
Your dog may be afraid of other dogs due to a lack of socialization.
This can occur in dogs that were separated from their siblings very early on and who don't know any other dogs in their adopted family.
Adult dogs can be socialized, but it's more difficult than training a puppy.