Why do metals tend to lose electrons and nonmetals tend to gain electrons?

Hi! I need help on this one question on my self test:

Use ionizing energy and electronegativity to discuss why metals tend to lose electrons and nonmetals tend to gain electrons?
3 answers 3