My uneducated guess is there is no direct, visible link between the poisoner and the poisoned, whereas the gun establishes immediately that a school shooter "controls" others via the ability to immediately remove their lives in a visible way. Specifically in mass shootings (as school shootings are any form of gun discharge in a school), most of the shooters are suicidal and have grievances, which are tied to a lack of sense of control in their lives, and the gun gives more direct feedback than poisoning people.