Phobias can develop based on various factors, including personal experience, genetic predisposition, and brain functioning. Personal trauma, especially experienced in childhood or early life, can leave a mark in the form of fears, as well as the influence of parents and surroundings, through which a person may acquire certain fears. The nervous system in some individuals may overreact to potential threats, leading to the development of phobias. An important factor is also heredity: if there is a tendency for anxiety disorders in the family, the likelihood of phobias appearing in descendants increase
Thank you, I found it interesting to think about this question

Thank you Margaryta for your very detailed comment