Explained here:
TLDR: Because an actual, real-life op-amp has a small amount of current flowing at the inputs, which tends to be balanced between them. Having equal impedances at the input means these input currents cause an equal voltage drop, and so the effect on the output is nil.