(a) In group 1 of the periodic table, the tendency to lose electrons increases on moving from top to bottom. This happens because an electron shell gets added at every stage and, the atomic radius increases. As the size of the atom increases, the distance between the valence electrons and the nucleus increases. This reduces the nuclear attraction force, causing the atom to lose its valence electrons easily, and form cations.
(b) In group 17 of the periodic table, the tendency to gain electrons decreases on moving from top to bottom. On moving down in a group, an electron shell gets added at every stage. As a result, the atomic radius increases. Since the size of the atom goes on increasing, it becomes difficult for the nucleus to attract the incoming electron, due to which the atom cannot form anions easily.