Non metals attain stability when they attain nobility .i. e. Fully filled outer shell. In order to achieve that, they undergo covalent bonding by sharing of electrons. Metals on the other hand have free electrons in their valence bands unlike non metals, they dont preferably require covalent bonding.