Bart Ehrman points to the lack of discussion among Biblical scholars as to why there was so much doubt expressed in the Bible about the risen Jesus. The question is, why would there be any doubt at all when someone you knew well was right in front of you?
The doubt is expressed in the Bible many times. Jesus is right there but the characters in the story do not recognize him. Someone has to hold his hand to believe it is him. He spends 40 days with his disciples “proving” he is there. Forty seconds should have been enough.
An explanation some make is that ancients had visions of Jesus and later doubted whether they really saw him or not. Ehrman discounts this because research has shown people who have visions believe what they experienced was real. It is unlikely those who saw visions of Jesus were the ones expressing doubt.
Ehrman believes a more likely explanation. Only a very few in the Bible had these visions. Likely it was only Peter, Paul and Mary and possible another one or two. None of these expressed doubt. They told others of their “real” experience.
It was the others who had doubt. Those who wrote the Bible had some reason for including these expressions of skepticism.
The resurrection story of it was repeated orally until it became widely believed as a historical fact. This even though the written version includes considerable doubt.
Bart Ehrman, How Jesus Became God.