the benefit of the doubt

Could you explain me in simple words the meaning of the idiom “to give someone the benefit of the doubt”? Thanks in advance!

give sb the benefit of the doubt

to believe something good about someone, rather than something bad, when you have the possibility of doing either
After hearing his explanation, I was prepared to give him the benefit of the doubt.

multitran.ru/c/m.exe?CL=1&l1 … +the+doubt