why metals have tendency to lose electrons?
Metals usually have few valence electrons and they loose electrons from their outer most shell thus, forming an ion with positive charge (cations). This is because it is easy for metals to loose electron and attain stable or octet configuration similar to rare gases. Hence to attain stability metals lose valence electrons. E.g. sodium (At no. =11 ; electronic configu-1s2, 2s2, 2p6, 3s1) metal has one valence electron and it is easy for it to loose 1e rather to gain 7e to attain stable configuration. Hence it loose 1e forming Na+ cation.