There are lots of things that could make a person doubt themselves. Some reasons are:
Feeling different
Being excluded
Experiencing abuse, including gaslighting
Having poor self esteem
There are many other reasons besides these.
_________________
“The darkness shall be the light, and the stillness the dancing.”
— from Four Quartets by T.S. Eliot