Because the angle AED=∠AFB=90 degrees, AD is the public side. So △ADE is equal to △ADF.
So ∠EAD=∠FAD
So AD bisects the angle BAC, so point D is on the bisector of ∠BAC.