The colour of KMnO4 disappears when oxalic acid is added to its solution in an acidic medium. This can be explained as :