The answer is; non-metals have a high ionization energy
This means that it would take more energy to dislodge an electron from the valence orbital than it would take to do the same to a metal atom. Therefore it would be easier to share electrons for non-metals while it would be easier to lose an electron for metals to reach a stable electron configuration.