By losing electrons positive ions are formed in case of metal so they are called electropositive. But in case of Non metals, by gaining electrons they form negative ions so they are called electronegative elements.
Electropositivity
Some of the learners also asked: Why do we call non metals as electronegative elements?