Because in order for a substance to undergo reduction and become an oxidizing agent, the substance must gain electrons. Non - metals therefore gain electrons while they are in their pure form while metals loose electrons in their pure form.
Examples:
Non - metals- Cl2+2e−→2Cl−
Br2+2e−→2Br−