Dear student,
In reaction of 2 H2O -------> 2H2 +O2
i. Oxygen is removed from water, so it is reduction,
ii. At the same time, hyrogen is also removed from molecule, so it is oxidation.
Since oxidation and reduction takes place simultaneously, hence the reaction is a redox reaction.
Regards