Why the angle of incidence is equal to angle of reflection?

When light gets reflected from a surface, according to Fermat’s Principle, it selects the path that takes the least time. That is why the angle of incidence is equal to the angle of reflection.