you know the isosceles Triangle theorem?
There is a theorem that the line go through the mid point of the line, it is perpendicular with that Line ( notice that the line start at the point between 2 congruent line) when you folded the paper, it created 2 congruent lines and also created the midpoint between A and B