Explanation:
Group 1A consist of metals and group. 2A consist of non metals . group1A elements can become stable by donating 1 electron in the same way the elements of group 7A also becomes stable by gaining one electron . So due to being so close to being a inert gas element it is compared to the nearest noble gas.